mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Add a check to make sure we don't crash with strange configurations where we do fast-isel, then try to fold instructions. PR10092.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132789 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f1e2b23dfa
commit
aebc3c1610
@ -2392,6 +2392,10 @@ MachineInstr* X86InstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Conservatively fail out for loads without a memoperand.
|
||||
if (LoadMI->memoperands_empty())
|
||||
return 0;
|
||||
|
||||
// Determine the alignment of the load.
|
||||
unsigned Alignment = 0;
|
||||
if (LoadMI->hasOneMemOperand())
|
||||
|
Loading…
Reference in New Issue
Block a user