mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 11:17:31 +00:00
Fix a bug in the -deadtypeelim pass. The SymbolTable re-write changed it
to eliminate the wrong type. llvm-svn: 13855
This commit is contained in:
parent
91633c1b92
commit
e56868d266
@ -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…
x
Reference in New Issue
Block a user