mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
An even better fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35998 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
15855a1d28
commit
98a72203d7
@ -65,9 +65,8 @@ bool ConstantMerge::runOnModule(Module &M) {
|
||||
// If this GV is dead, remove it.
|
||||
GV->removeDeadConstantUsers();
|
||||
if (GV->use_empty() && GV->hasInternalLinkage()) {
|
||||
(GV++)->eraseFromParent();
|
||||
if (GV == E)
|
||||
break;
|
||||
GV->eraseFromParent();
|
||||
continue;
|
||||
}
|
||||
|
||||
// Only process constants with initializers.
|
||||
|
Loading…
Reference in New Issue
Block a user