summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/LowerSetJmp.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-04 03:21:51 +0000
committerChris Lattner <sabre@nondot.org>2004-02-04 03:21:51 +0000
commit3b332fd37660a5ff91c183cb3a23e18e267b8b08 (patch)
treec25532a9d58addf33581df9f5c196ef494531de1 /lib/Transforms/IPO/LowerSetJmp.cpp
parentc6aa017eae3f6d9a8bf60c31c4614e5ade478e5f (diff)
downloadllvm-3b332fd37660a5ff91c183cb3a23e18e267b8b08.tar.gz
llvm-3b332fd37660a5ff91c183cb3a23e18e267b8b08.tar.bz2
llvm-3b332fd37660a5ff91c183cb3a23e18e267b8b08.tar.xz
Remove unneeded code now that splitBasicBlock does the "right thing"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LowerSetJmp.cpp')
-rw-r--r--lib/Transforms/IPO/LowerSetJmp.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Transforms/IPO/LowerSetJmp.cpp b/lib/Transforms/IPO/LowerSetJmp.cpp
index a9c87f6a89..79f1c3e3e0 100644
--- a/lib/Transforms/IPO/LowerSetJmp.cpp
+++ b/lib/Transforms/IPO/LowerSetJmp.cpp
@@ -413,11 +413,6 @@ void LowerSetJmp::TransformSetJmpCall(CallInst* Inst)
SetJmpContBlock->setName("SetJmpContBlock");
- // Reposition the split BB in the BB list to make things tidier.
- Func->getBasicBlockList().remove(SetJmpContBlock);
- Func->getBasicBlockList().insert(++Function::iterator(ABlock),
- SetJmpContBlock);
-
// This PHI node will be in the new block created from the
// splitBasicBlock call.
PHINode* PHI = new PHINode(Type::IntTy, "SetJmpReturn", Inst);