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
This commit is contained in:
Chris Lattner 2004-07-18 06:56:58 +00:00
parent acc928042d
commit 5827aebe64

View File

@ -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.