mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 05:41:40 +00:00
Don't forget to transfer implicit uses of return instruction.
llvm-svn: 147752
This commit is contained in:
parent
e958ca7b2e
commit
6a08916ce2
@ -278,8 +278,11 @@ void Thumb1FrameLowering::emitEpilogue(MachineFunction &MF,
|
||||
|
||||
emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, VARegSaveSize);
|
||||
|
||||
AddDefaultPred(BuildMI(MBB, MBBI, dl, TII.get(ARM::tBX_RET_vararg))
|
||||
.addReg(ARM::R3, RegState::Kill));
|
||||
MachineInstrBuilder MIB =
|
||||
BuildMI(MBB, MBBI, dl, TII.get(ARM::tBX_RET_vararg))
|
||||
.addReg(ARM::R3, RegState::Kill);
|
||||
AddDefaultPred(MIB);
|
||||
MIB->copyImplicitOps(&*MBBI);
|
||||
// erase the old tBX_RET instruction
|
||||
MBB.erase(MBBI);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user