mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fix a bug in the -deadtypeelim pass. The SymbolTable re-write changed it
to eliminate the wrong type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13855 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1fc3739560
commit
e7b9a1a5f2
@ -81,7 +81,7 @@ bool DTE::run(Module &M) {
|
||||
const Type *RHS = TI->second;
|
||||
if (ShouldNukeSymtabEntry(RHS) || !UsedTypes.count(RHS)) {
|
||||
SymbolTable::type_iterator ToRemove = TI++;
|
||||
ST.remove(TI->second);
|
||||
ST.remove(ToRemove->second);
|
||||
++NumKilled;
|
||||
Changed = true;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user