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

Chris Lattner lattner at cs.uiuc.edu
Sat Jul 17 23:57:08 PDT 2004



Changes in directory llvm/lib/Transforms/IPO:

Inliner.cpp updated: 1.17 -> 1.18

---
Log message:

Fix a rather serious bug in previous checkin


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

Index: llvm/lib/Transforms/IPO/Inliner.cpp
diff -u llvm/lib/Transforms/IPO/Inliner.cpp:1.17 llvm/lib/Transforms/IPO/Inliner.cpp:1.18
--- llvm/lib/Transforms/IPO/Inliner.cpp:1.17	Sat Jul 17 19:22:58 2004
+++ llvm/lib/Transforms/IPO/Inliner.cpp	Sun Jul 18 01:56:58 2004
@@ -175,7 +175,6 @@
     if (F && F->hasOneUse())
       if (Function *GV = dyn_cast<Function>(F->use_back()))
         if (GV->removeDeadConstantUsers()) {
-	  delete GV;
           if (F->hasInternalLinkage()) {
             // There *MAY* be an edge from the external call node to this
             // function.  If so, remove it.





More information about the llvm-commits mailing list