mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 23:29:20 +00:00
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:
parent
acc928042d
commit
5827aebe64
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user