From 5827aebe64e442241fd16ef7006433251d060738 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 18 Jul 2004 06:56:58 +0000 Subject: [PATCH] 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 --- lib/Transforms/IPO/Inliner.cpp | 1 - 1 file changed, 1 deletion(-) 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. -- 2.34.1