We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd6958b commit c4f11afCopy full SHA for c4f11af
llvm/lib/CodeGen/MachineVerifier.cpp
@@ -1279,7 +1279,7 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
1279
ConstantInt *i =
1280
mdconst::extract<ConstantInt>(MMO.getRanges()->getOperand(0));
1281
if (i->getIntegerType()->getBitWidth() !=
1282
- ValTy.getScalarType().getSizeInBits()) {
+ MMO.getMemoryType().getScalarSizeInBits()) {
1283
report("range is incompatible with the result type", MI);
1284
}
1285
0 commit comments