From: Chris Lattner Date: Sun, 18 Jul 2004 06:56:58 +0000 (+0000) Subject: Fix a rather serious bug in previous checkin X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5827aebe64e442241fd16ef7006433251d060738;p=oota-llvm.git Fix a rather serious bug in previous checkin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14957 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/Inliner.cpp b/lib/Transforms/IPO/Inliner.cpp index ed5efe22acc..bad8295adac 100644 --- a/lib/Transforms/IPO/Inliner.cpp +++ b/lib/Transforms/IPO/Inliner.cpp @@ -175,7 +175,6 @@ bool Inliner::doFinalization(CallGraph &CG) { if (F && F->hasOneUse()) if (Function *GV = dyn_cast(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.