Skip to content

Commit d39001b

Browse files
committed
A few fixups to conform to coding standards in new code
1 parent 463dade commit d39001b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

lib/HLSL/HLOperationLower.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ Value *TrivialDxilOperation(OP::OpCode opcode, ArrayRef<Value *> refArgs,
524524
// return type from the overload by passing the argument, explicit return type,
525525
// and helper objects to the scalarizing unary dxil operation creation.
526526
Value *TrivialUnaryOperationRet(CallInst *CI, IntrinsicOp IOP,
527-
OP::OpCode opcode,
527+
OP::OpCode OpCode,
528528
HLOperationLowerHelper &Helper,
529529
HLObjectOperationLowerHelper *pObjHelper,
530530
bool &Translated) {
@@ -534,21 +534,21 @@ Value *TrivialUnaryOperationRet(CallInst *CI, IntrinsicOp IOP,
534534
IRBuilder<> Builder(CI);
535535
hlsl::OP *OP = &Helper.hlslOP;
536536
Type *RetTy = CI->getType();
537-
Constant *opArg = OP->GetU32Const((unsigned)opcode);
538-
Value *args[] = {opArg, Src};
537+
Constant *OpArg = OP->GetU32Const((unsigned)OpCode);
538+
Value *Args[] = {OpArg, Src};
539539

540-
return TrivialDxilOperation(opcode, args, Ty, RetTy, OP, Builder);
540+
return TrivialDxilOperation(OpCode, Args, Ty, RetTy, OP, Builder);
541541
}
542542

543-
Value *TrivialDxilUnaryOperation(OP::OpCode opcode, Value *src,
544-
hlsl::OP *hlslOP, IRBuilder<> &Builder,
543+
Value *TrivialDxilUnaryOperation(OP::OpCode OpCode, Value *src,
544+
hlsl::OP *Op, IRBuilder<> &Builder,
545545
bool SupportsVectors = false) {
546546
Type *Ty = src->getType();
547547

548-
Constant *OpArg = hlslOP->GetU32Const((unsigned)opcode);
548+
Constant *OpArg = Op->GetU32Const((unsigned)OpCode);
549549
Value *Args[] = {OpArg, src};
550550

551-
return TrivialDxilOperation(opcode, Args, Ty, Ty, hlslOP, Builder,
551+
return TrivialDxilOperation(OpCode, Args, Ty, Ty, Op, Builder,
552552
SupportsVectors);
553553
}
554554

0 commit comments

Comments
 (0)