projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
127215e
)
splitBasicBlock "does the right thing" now, no reason to reposition it.
author
Chris Lattner
<sabre@nondot.org>
Sun, 8 Feb 2004 20:49:07 +0000
(20:49 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 8 Feb 2004 20:49:07 +0000
(20:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11199
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/LowerSetJmp.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/LowerSetJmp.cpp
b/lib/Transforms/IPO/LowerSetJmp.cpp
index 79f1c3e3e0e195a66da00c1d2a233acc058f501c..a2146f47de7e77e6328d9d902df66f1ae45ec92f 100644
(file)
--- 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();