Fix a rather serious bug in previous checkin
authorChris Lattner <sabre@nondot.org>
Sun, 18 Jul 2004 06:56:58 +0000 (06:56 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 18 Jul 2004 06:56:58 +0000 (06:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14957 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/Inliner.cpp

index ed5efe22acc794c37224b72d86dd7a6369f3a7a4..bad8295adacd35cd2f38eeddaf0b758c84a19bea 100644 (file)
@@ -175,7 +175,6 @@ bool Inliner::doFinalization(CallGraph &CG) {
     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.