diff --git a/lib/Transforms/IPO/LowerSetJmp.cpp b/lib/Transforms/IPO/LowerSetJmp.cpp index 79f1c3e3e0e..a2146f47de7 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();