mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
PR10092 (second try): Don't crash on a load without a momoperand; fast-isel creates loads like this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132826 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2420,7 +2420,7 @@ MachineInstr* X86InstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
|
|||||||
Alignment = 4;
|
Alignment = 4;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
llvm_unreachable("Don't know how to fold this instruction!");
|
return 0;
|
||||||
}
|
}
|
||||||
if (Ops.size() == 2 && Ops[0] == 0 && Ops[1] == 1) {
|
if (Ops.size() == 2 && Ops[0] == 0 && Ops[1] == 1) {
|
||||||
unsigned NewOpc = 0;
|
unsigned NewOpc = 0;
|
||||||
|
Reference in New Issue
Block a user