summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMFrameLowering.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-06-17 02:16:43 +0000
committerCameron Zwarich <zwarich@apple.com>2011-06-17 02:16:43 +0000
commit033026ffc07ee0b7dd67c2b06259ce2be6051254 (patch)
treeef19c88e73eb6d731b385b1d66ff8f42830031f8 /llvm/lib/Target/ARM/ARMFrameLowering.cpp
parente9544258efed7de765cba029c75971215ed8015f (diff)
downloadbcm5719-llvm-033026ffc07ee0b7dd67c2b06259ce2be6051254.tar.gz
bcm5719-llvm-033026ffc07ee0b7dd67c2b06259ce2be6051254.zip
Update an insertion point iterator after replacing a return instruction with a
tail call pseudoinstruction. This fixes <rdar://problem/9624333>. llvm-svn: 133227
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFrameLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
index 516e34ae04e..4ef26660a72 100644
--- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
@@ -427,6 +427,7 @@ void ARMFrameLowering::emitEpilogue(MachineFunction &MF,
// Delete the pseudo instruction TCRETURN.
MBB.erase(MBBI);
+ MBBI = NewMI;
}
if (VARegSaveSize)
OpenPOWER on IntegriCloud