Fix unused variable error.

Earlier, this variable was used in an assert and was causing failure on
darwin.

llvm-svn: 181630
This commit is contained in:
Jyotsna Verma 2013-05-10 21:44:02 +00:00
parent f20d85d4ad
commit 9c76c6e3f4

View File

@ -184,8 +184,7 @@ void HexagonFrameLowering::emitEpilogue(MachineFunction &MF,
const TargetInstrInfo &TII = *MF.getTarget().getInstrInfo();
// Handle EH_RETURN.
if (MBBI->getOpcode() == Hexagon::EH_RETURN_JMPR) {
MachineOperand &OffsetReg = MBBI->getOperand(0);
assert(OffsetReg.isReg() && "Offset should be in register!");
assert(MBBI->getOperand(0).isReg() && "Offset should be in register!");
BuildMI(MBB, MBBI, dl, TII.get(Hexagon::DEALLOCFRAME));
BuildMI(MBB, MBBI, dl, TII.get(Hexagon::ADD_rr),
Hexagon::R29).addReg(Hexagon::R29).addReg(Hexagon::R28);