mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
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
This commit is contained in:
parent
cdfb55d15b
commit
fd4ccda4a5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user