mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Fix -Asserts warning, round two.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c3eaf46a1
commit
19bb87d0f8
@ -1057,12 +1057,11 @@ ARMBaseRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
|
||||
if (Done)
|
||||
return;
|
||||
|
||||
const TargetInstrDesc &Desc = MI.getDesc();
|
||||
|
||||
// If we get here, the immediate doesn't fit into the instruction. We folded
|
||||
// as much as possible above, handle the rest, providing a register that is
|
||||
// SP+LargeImm.
|
||||
assert((Offset || (Desc.TSFlags & ARMII::AddrModeMask) == ARMII::AddrMode4) &&
|
||||
assert((Offset ||
|
||||
(MI.getDesc().TSFlags & ARMII::AddrModeMask) == ARMII::AddrMode4) &&
|
||||
"This code isn't needed if offset already handled!");
|
||||
|
||||
// Insert a set of r12 with the full address: r12 = sp + offset
|
||||
|
Loading…
Reference in New Issue
Block a user