aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
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
commitcd4e0b593db6dfdb5cedbde47ea6603058b8ac6c (patch)
tree12a5a8ead648e2cb789be67a9807cd8ed0feafc0 /lib/Target
parente1fd84af7affc08cda70a4c8261f52ac83195bc4 (diff)
downloadexternal_llvm-cd4e0b593db6dfdb5cedbde47ea6603058b8ac6c.zip
external_llvm-cd4e0b593db6dfdb5cedbde47ea6603058b8ac6c.tar.gz
external_llvm-cd4e0b593db6dfdb5cedbde47ea6603058b8ac6c.tar.bz2
Update an insertion point iterator after replacing a return instruction with a
tail call pseudoinstruction. This fixes <rdar://problem/9624333>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/ARM/ARMFrameLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMFrameLowering.cpp b/lib/Target/ARM/ARMFrameLowering.cpp
index 516e34a..4ef2666 100644
--- a/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/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)