PR10092 (second try): Don't crash on a load without a momoperand; fast-isel creates loads like this.

llvm-svn: 132826
This commit is contained in:
Eli Friedman 2011-06-10 01:13:01 +00:00
parent f1b711035c
commit 950df94d25

View File

@ -2420,7 +2420,7 @@ MachineInstr* X86InstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
Alignment = 4;
break;
default:
llvm_unreachable("Don't know how to fold this instruction!");
return 0;
}
if (Ops.size() == 2 && Ops[0] == 0 && Ops[1] == 1) {
unsigned NewOpc = 0;