summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/LowerSetJmp.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-08 20:49:07 +0000
committerChris Lattner <sabre@nondot.org>2004-02-08 20:49:07 +0000
commitedb1cf0c19dc0d155a2c0d35c099dd63a182fcc2 (patch)
treec9936c0fc566d0cc29d32c462d2dbf46f4a30bf5 /lib/Transforms/IPO/LowerSetJmp.cpp
parent127215e9057985ba2e919bf8eedf14c78a696a45 (diff)
downloadllvm-edb1cf0c19dc0d155a2c0d35c099dd63a182fcc2.tar.gz
llvm-edb1cf0c19dc0d155a2c0d35c099dd63a182fcc2.tar.bz2
llvm-edb1cf0c19dc0d155a2c0d35c099dd63a182fcc2.tar.xz
splitBasicBlock "does the right thing" now, no reason to reposition it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LowerSetJmp.cpp')
-rw-r--r--lib/Transforms/IPO/LowerSetJmp.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/LowerSetJmp.cpp b/lib/Transforms/IPO/LowerSetJmp.cpp
index 79f1c3e3e0..a2146f47de 100644
--- a/lib/Transforms/IPO/LowerSetJmp.cpp
+++ b/lib/Transforms/IPO/LowerSetJmp.cpp
@@ -455,10 +455,7 @@ void LowerSetJmp::visitCallInst(CallInst& CI)
assert(NewBB && "Couldn't split BB of \"call\" instruction!!");
NewBB->setName("Call2Invoke");
- // Reposition the split BB in the BB list to make things tidier.
Function* Func = OldBB->getParent();
- Func->getBasicBlockList().remove(NewBB);
- Func->getBasicBlockList().insert(++Function::iterator(OldBB), NewBB);
// Construct the new "invoke" instruction.
TerminatorInst* Term = OldBB->getTerminator();