[llvm-commits] CVS: llvm/lib/Transforms/IPO/DeadTypeElimination.cpp
John Criswell
criswell at cs.uiuc.edu
Thu May 27 16:18:03 PDT 2004
Changes in directory llvm/lib/Transforms/IPO:
DeadTypeElimination.cpp updated: 1.50 -> 1.51
---
Log message:
Fix a bug in the -deadtypeelim pass. The SymbolTable re-write changed it
to eliminate the wrong type.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Transforms/IPO/DeadTypeElimination.cpp
diff -u llvm/lib/Transforms/IPO/DeadTypeElimination.cpp:1.50 llvm/lib/Transforms/IPO/DeadTypeElimination.cpp:1.51
--- llvm/lib/Transforms/IPO/DeadTypeElimination.cpp:1.50 Tue May 25 03:51:03 2004
+++ llvm/lib/Transforms/IPO/DeadTypeElimination.cpp Thu May 27 16:16:46 2004
@@ -81,7 +81,7 @@
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 {
More information about the llvm-commits
mailing list