Skip to content

Commit a80ab65

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

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
@@ -1044,9 +1044,9 @@ static void ValidateImmOperandsForMatVecOps(CallInst *CI, DXIL::OpCode opcode,
10441044
CI, ValidationRule::InstrLinalgInvalidRegisterInterpValue);
10451045
}
10461046

1047-
ConstantInt *Mi = cast<ConstantInt>(MatrixInterpretation);
1048-
auto MiValue = Mi->getLimitedValue();
1049-
if (!CheckInMemoryInterpretations(MiValue)) {
1047+
ConstantInt *MI = cast<ConstantInt>(MatrixInterpretation);
1048+
auto MIValue = MI->getLimitedValue();
1049+
if (!CheckInMemoryInterpretations(MIValue)) {
10501050
ValCtx.EmitInstrError(CI,
10511051
ValidationRule::InstrLinalgInvalidMemoryInterpValue);
10521052
}

0 commit comments

Comments
 (0)