[llvm-commits] CVS: llvm/lib/Analysis/AliasSetTracker.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 15 10:00:01 PDT 2004
Changes in directory llvm/lib/Analysis:
AliasSetTracker.cpp updated: 1.27 -> 1.28
---
Log message:
Add some assertions
---
Diffs of the changes: (+3 -2)
Index: llvm/lib/Analysis/AliasSetTracker.cpp
diff -u llvm/lib/Analysis/AliasSetTracker.cpp:1.27 llvm/lib/Analysis/AliasSetTracker.cpp:1.28
--- llvm/lib/Analysis/AliasSetTracker.cpp:1.27 Tue Sep 14 14:15:32 2004
+++ llvm/lib/Analysis/AliasSetTracker.cpp Wed Sep 15 11:59:47 2004
@@ -50,6 +50,7 @@
AS.PtrList = 0;
AS.PtrListEnd = &AS.PtrList;
+ assert(*AS.PtrListEnd == 0 && "End of list is not null?");
}
}
@@ -70,11 +71,10 @@
unsigned Size, bool KnownMustAlias) {
assert(!Entry.second.hasAliasSet() && "Entry already in set!");
- AliasAnalysis &AA = AST.getAliasAnalysis();
-
// Check to see if we have to downgrade to _may_ alias.
if (isMustAlias() && !KnownMustAlias)
if (HashNodePair *P = getSomePointer()) {
+ AliasAnalysis &AA = AST.getAliasAnalysis();
AliasAnalysis::AliasResult Result =
AA.alias(P->first, P->second.getSize(), Entry.first, Size);
if (Result == AliasAnalysis::MayAlias)
@@ -91,6 +91,7 @@
assert(*PtrListEnd == 0 && "End of list is not null?");
*PtrListEnd = &Entry;
PtrListEnd = Entry.second.setPrevInList(PtrListEnd);
+ assert(*PtrListEnd == 0 && "End of list is not null?");
addRef(); // Entry points to alias set...
}
More information about the llvm-commits
mailing list