Fix -Asserts warning, round two.

llvm-svn: 80354
This commit is contained in:
Daniel Dunbar 2009-08-28 08:08:22 +00:00
parent aa74a0c3b5
commit 3033db2448
1 changed files with 2 additions and 3 deletions

View File

@ -1057,12 +1057,11 @@ ARMBaseRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
if (Done) if (Done)
return; return;
const TargetInstrDesc &Desc = MI.getDesc();
// If we get here, the immediate doesn't fit into the instruction. We folded // 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 // as much as possible above, handle the rest, providing a register that is
// SP+LargeImm. // 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!"); "This code isn't needed if offset already handled!");
// Insert a set of r12 with the full address: r12 = sp + offset // Insert a set of r12 with the full address: r12 = sp + offset