[llvm-commits] [llvm] r147752 - /llvm/trunk/lib/Target/ARM/Thumb1FrameLowering.cpp
Evan Cheng
evan.cheng at apple.com
Sun Jan 8 12:41:16 PST 2012
Author: evancheng
Date: Sun Jan 8 14:41:16 2012
New Revision: 147752
URL: http://llvm.org/viewvc/llvm-project?rev=147752&view=rev
Log:
Don't forget to transfer implicit uses of return instruction.
Modified:
llvm/trunk/lib/Target/ARM/Thumb1FrameLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/Thumb1FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb1FrameLowering.cpp?rev=147752&r1=147751&r2=147752&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb1FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb1FrameLowering.cpp Sun Jan 8 14:41:16 2012
@@ -278,8 +278,11 @@
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);
}
More information about the llvm-commits
mailing list