mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
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
This commit is contained in:
@@ -455,10 +455,7 @@ void LowerSetJmp::visitCallInst(CallInst& CI)
|
|||||||
assert(NewBB && "Couldn't split BB of \"call\" instruction!!");
|
assert(NewBB && "Couldn't split BB of \"call\" instruction!!");
|
||||||
NewBB->setName("Call2Invoke");
|
NewBB->setName("Call2Invoke");
|
||||||
|
|
||||||
// Reposition the split BB in the BB list to make things tidier.
|
|
||||||
Function* Func = OldBB->getParent();
|
Function* Func = OldBB->getParent();
|
||||||
Func->getBasicBlockList().remove(NewBB);
|
|
||||||
Func->getBasicBlockList().insert(++Function::iterator(OldBB), NewBB);
|
|
||||||
|
|
||||||
// Construct the new "invoke" instruction.
|
// Construct the new "invoke" instruction.
|
||||||
TerminatorInst* Term = OldBB->getTerminator();
|
TerminatorInst* Term = OldBB->getTerminator();
|
||||||
|
|||||||
Reference in New Issue
Block a user