summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/Inliner.cpp
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
commit2da5eee33cb91dbad745350925fc6db479b43cc1 (patch)
tree2ccac8109287b9aa06f52a9a8dfe2b7c4c20b052 /llvm/lib/Transforms/IPO/Inliner.cpp
parentc9c90cfb2972854bd013d00b9b2a608e5915c948 (diff)
downloadbcm5719-llvm-2da5eee33cb91dbad745350925fc6db479b43cc1.tar.gz
bcm5719-llvm-2da5eee33cb91dbad745350925fc6db479b43cc1.zip
Fix a rather serious bug in previous checkin
llvm-svn: 14957
Diffstat (limited to 'llvm/lib/Transforms/IPO/Inliner.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/Inliner.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp
index ed5efe22acc..bad8295adac 100644
--- a/llvm/lib/Transforms/IPO/Inliner.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud