Skip to content

Commit

Permalink
PR10092 (second try): Don't crash on a load without a momoperand; fas…
Browse files Browse the repository at this point in the history
…t-isel creates loads like this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132826 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
eefriedman committed Jun 10, 2011
1 parent 348d542 commit be5cbaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/X86/X86InstrInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit be5cbaa

Please sign in to comment.