mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-30 06:40:53 +00:00
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:
parent
f1b711035c
commit
950df94d25
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user