Skip to content

Commit f588854

Browse files
committed
MMO getType
1 parent 9798ef6 commit f588854

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
@@ -1191,7 +1191,7 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
11911191
if (MMO.getSizeInBits() >= ValTy.getSizeInBits())
11921192
report("Generic extload must have a narrower memory type", MI);
11931193
} else if (MI->getOpcode() == TargetOpcode::G_LOAD) {
1194-
if (TypeSize::isKnownGT(MMO.getMemoryType().getSizeInBytes(), ValTy.getSizeInBytes()))
1194+
if (TypeSize::isKnownGT(MMO.getType().getSizeInBytes(), ValTy.getSizeInBytes()))
11951195
report("load memory size cannot exceed result size", MI);
11961196
} else if (MI->getOpcode() == TargetOpcode::G_STORE) {
11971197
if (ValTy.getSizeInBytes() < MMO.getSize())

0 commit comments

Comments
 (0)