diff options
author | Jyotsna Verma <jverma@codeaurora.org> | 2013-05-10 21:44:02 +0000 |
---|---|---|
committer | Jyotsna Verma <jverma@codeaurora.org> | 2013-05-10 21:44:02 +0000 |
commit | fd4ccda4a56d1664b43ca7ed9909254f6de592bb (patch) | |
tree | 7b19183f05cfab95d307659b3ec73aab8824e82b | |
parent | cdfb55d15bbcdf1533ca26ffcb9c94fa5d225bd0 (diff) |
Fix unused variable error.
Earlier, this variable was used in an assert and was causing failure on
darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181630 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Hexagon/HexagonFrameLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/Hexagon/HexagonFrameLowering.cpp b/lib/Target/Hexagon/HexagonFrameLowering.cpp index 77ad70dd6c..0fda4edf86 100644 --- a/lib/Target/Hexagon/HexagonFrameLowering.cpp +++ b/lib/Target/Hexagon/HexagonFrameLowering.cpp @@ -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); |