aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/IPO
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-18 06:56:58 +0000
committerChris Lattner <sabre@nondot.org>2004-07-18 06:56:58 +0000
commit5827aebe64e442241fd16ef7006433251d060738 (patch)
treef60a90c1fafbb9a20b2a3ce41189e3893f70229d /lib/Transforms/IPO
parentacc928042daf6912267544a623bdaba3633fec36 (diff)
downloadexternal_llvm-5827aebe64e442241fd16ef7006433251d060738.zip
external_llvm-5827aebe64e442241fd16ef7006433251d060738.tar.gz
external_llvm-5827aebe64e442241fd16ef7006433251d060738.tar.bz2
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
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r--lib/Transforms/IPO/Inliner.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/Inliner.cpp b/lib/Transforms/IPO/Inliner.cpp
index ed5efe2..bad8295 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<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.