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 9798ef6 commit f588854Copy full SHA for f588854
llvm/lib/CodeGen/MachineVerifier.cpp
@@ -1191,7 +1191,7 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
1191
if (MMO.getSizeInBits() >= ValTy.getSizeInBits())
1192
report("Generic extload must have a narrower memory type", MI);
1193
} else if (MI->getOpcode() == TargetOpcode::G_LOAD) {
1194
- if (TypeSize::isKnownGT(MMO.getMemoryType().getSizeInBytes(), ValTy.getSizeInBytes()))
+ if (TypeSize::isKnownGT(MMO.getType().getSizeInBytes(), ValTy.getSizeInBytes()))
1195
report("load memory size cannot exceed result size", MI);
1196
} else if (MI->getOpcode() == TargetOpcode::G_STORE) {
1197
if (ValTy.getSizeInBytes() < MMO.getSize())
0 commit comments