aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms')
-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.