@@ -1497,7 +1497,7 @@ static void ValidateResourceDxilOp(CallInst *CI, DXIL::OpCode Opcode,
14971497 ValCtx.EmitInstrError (CI, ValidationRule::InstrResourceClassForLoad);
14981498
14991499 unsigned AlignIdx = DXIL::OperandIndex::kRawBufferLoadAlignmentOpIdx ;
1500- if (DXIL::OpCode::RawBufferVectorLoad == opcode )
1500+ if (DXIL::OpCode::RawBufferVectorLoad == Opcode )
15011501 AlignIdx = DXIL::OperandIndex::kRawBufferVectorLoadAlignmentOpIdx ;
15021502 if (!isa<ConstantInt>(CI->getOperand (AlignIdx)))
15031503 ValCtx.EmitInstrError (CI, ValidationRule::InstrConstAlignForRawBuf);
@@ -1531,8 +1531,8 @@ static void ValidateResourceDxilOp(CallInst *CI, DXIL::OpCode Opcode,
15311531 ValCtx.EmitInstrError (CI, ValidationRule::Sm64bitRawBufferLoadStore);
15321532 }
15331533 DxilInst_RawBufferStore bufSt (CI);
1534- ConstantInt *mask = dyn_cast<ConstantInt>(bufSt.get_mask ());
1535- unsigned stValMask =
1534+ ConstantInt *Mask = dyn_cast<ConstantInt>(bufSt.get_mask ());
1535+ unsigned StValMask =
15361536 StoreValueToMask ({bufSt.get_value0 (), bufSt.get_value1 (),
15371537 bufSt.get_value2 (), bufSt.get_value3 ()});
15381538
@@ -1553,7 +1553,7 @@ static void ValidateResourceDxilOp(CallInst *CI, DXIL::OpCode Opcode,
15531553 ValCtx.EmitInstrError (CI, ValidationRule::InstrResourceClassForUAVStore);
15541554
15551555 unsigned AlignIdx = DXIL::OperandIndex::kRawBufferStoreAlignmentOpIdx ;
1556- if (DXIL::OpCode::RawBufferVectorStore == opcode ) {
1556+ if (DXIL::OpCode::RawBufferVectorStore == Opcode ) {
15571557 AlignIdx = DXIL::OperandIndex::kRawBufferVectorStoreAlignmentOpIdx ;
15581558 unsigned ValueIx = DXIL::OperandIndex::kRawBufferVectorStoreValOpIdx ;
15591559 if (isa<UndefValue>(CI->getOperand (ValueIx)))
@@ -1693,7 +1693,7 @@ static void ValidateDxilOperationCallInProfile(CallInst *CI,
16931693 case DXIL::OpCode::RawBufferStore:
16941694 case DXIL::OpCode::RawBufferVectorLoad:
16951695 case DXIL::OpCode::RawBufferVectorStore:
1696- ValidateResourceDxilOp (CI, opcode , ValCtx);
1696+ ValidateResourceDxilOp (CI, Opcode , ValCtx);
16971697 break ;
16981698 // Input output.
16991699 case DXIL::OpCode::LoadInput:
0 commit comments