[llvm-commits] CVS: llvm/lib/Transforms/IPO/LowerSetJmp.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Feb 8 14:50:01 PST 2004


Changes in directory llvm/lib/Transforms/IPO:

LowerSetJmp.cpp updated: 1.15 -> 1.16

---
Log message:

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


---
Diffs of the changes:  (+0 -3)

Index: llvm/lib/Transforms/IPO/LowerSetJmp.cpp
diff -u llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.15 llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.16
--- llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.15	Tue Feb  3 21:21:51 2004
+++ llvm/lib/Transforms/IPO/LowerSetJmp.cpp	Sun Feb  8 14:49:07 2004
@@ -455,10 +455,7 @@
   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();





More information about the llvm-commits mailing list