summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-30 01:26:16 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-30 01:26:16 +0000
commit0cfc497f195ab9f5d2d886b86a7bb9a15b2ef11b (patch)
treefc5f55cf168786411eeab920d31f250b7db342a2 /llvm/lib/CodeGen
parentef5418572404da4ad997a0896acf830ac0f27471 (diff)
downloadbcm5719-llvm-0cfc497f195ab9f5d2d886b86a7bb9a15b2ef11b.tar.gz
bcm5719-llvm-0cfc497f195ab9f5d2d886b86a7bb9a15b2ef11b.zip
Make sure copies are inserted after any exception handling labels at the top of
a basic block. llvm-svn: 117764
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SplitKit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp
index 763cce82519..5b5b602952e 100644
--- a/llvm/lib/CodeGen/SplitKit.cpp
+++ b/llvm/lib/CodeGen/SplitKit.cpp
@@ -799,7 +799,7 @@ void SplitEditor::leaveIntvAtTop(MachineBasicBlock &MBB) {
// We are going to insert a back copy, so we must have a dupli_.
VNInfo *VNI = dupli_.defByCopyFrom(openli_.getLI()->reg, ParentVNI,
- MBB, MBB.begin());
+ MBB, MBB.SkipPHIsAndLabels(MBB.begin()));
// Finally we must make sure that openli is properly extended from Start to
// the new copy.
OpenPOWER on IntegriCloud