Skip to content

Commit c4f11af

Browse files
parsifal-47arsenm
andauthored
Update llvm/lib/CodeGen/MachineVerifier.cpp
Co-authored-by: Matt Arsenault <[email protected]>
1 parent cd6958b commit c4f11af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/MachineVerifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
12791279
ConstantInt *i =
12801280
mdconst::extract<ConstantInt>(MMO.getRanges()->getOperand(0));
12811281
if (i->getIntegerType()->getBitWidth() !=
1282-
ValTy.getScalarType().getSizeInBits()) {
1282+
MMO.getMemoryType().getScalarSizeInBits()) {
12831283
report("range is incompatible with the result type", MI);
12841284
}
12851285
}

0 commit comments

Comments
 (0)