Skip to content

Commit 067bea3

Browse files
simolltex3d
andauthored
Update lib/DxilValidation/DxilValidation.cpp
Co-authored-by: Tex Riddell <[email protected]>
1 parent a80ab65 commit 067bea3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/DxilValidation/DxilValidation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,9 +1037,9 @@ static void ValidateImmOperandsForMatVecOps(CallInst *CI, DXIL::OpCode opcode,
10371037
}
10381038

10391039
// Check if InputInterpretation and MatrixInterpretation are valid
1040-
ConstantInt *Ii = cast<ConstantInt>(InputInterpretation);
1041-
auto IiValue = Ii->getLimitedValue();
1042-
if (!CheckFromRegisterInterpretations(IiValue)) {
1040+
ConstantInt *II = cast<ConstantInt>(InputInterpretation);
1041+
auto IIValue = II->getLimitedValue();
1042+
if (!CheckFromRegisterInterpretations(IIValue)) {
10431043
ValCtx.EmitInstrError(
10441044
CI, ValidationRule::InstrLinalgInvalidRegisterInterpValue);
10451045
}

0 commit comments

Comments
 (0)