1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

splitBasicBlock "does the right thing" now, no reason to reposition it.

llvm-svn: 11199
This commit is contained in:
Chris Lattner 2004-02-08 20:49:07 +00:00
parent 4837e31b85
commit 46c84561b2

View File

@ -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();