[llvm-commits] CVS: llvm/include/llvm/Analysis/AliasSetTracker.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 15 10:00:52 PDT 2004
Changes in directory llvm/include/llvm/Analysis:
AliasSetTracker.h updated: 1.20 -> 1.21
---
Log message:
Make sure to update the list end when an element is removed from it. This
fixes a crash in LICM when processing povray.
---
Diffs of the changes: (+4 -0)
Index: llvm/include/llvm/Analysis/AliasSetTracker.h
diff -u llvm/include/llvm/Analysis/AliasSetTracker.h:1.20 llvm/include/llvm/Analysis/AliasSetTracker.h:1.21
--- llvm/include/llvm/Analysis/AliasSetTracker.h:1.20 Tue Sep 14 14:15:12 2004
+++ llvm/include/llvm/Analysis/AliasSetTracker.h Wed Sep 15 12:00:41 2004
@@ -77,6 +77,10 @@
void removeFromList() {
if (NextInList) NextInList->second.PrevInList = PrevInList;
*PrevInList = NextInList;
+ if (AS->PtrListEnd == &NextInList) {
+ AS->PtrListEnd = PrevInList;
+ assert(*AS->PtrListEnd == 0 && "List not terminated right!");
+ }
}
};
More information about the llvm-commits
mailing list