diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-18 06:56:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-18 06:56:58 +0000 |
commit | 5827aebe64e442241fd16ef7006433251d060738 (patch) | |
tree | f60a90c1fafbb9a20b2a3ce41189e3893f70229d /lib/Transforms/IPO | |
parent | acc928042daf6912267544a623bdaba3633fec36 (diff) | |
download | external_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.cpp | 1 |
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. |