Changes in directory llvm/lib/Analysis:
AliasSetTracker.cpp updated: 1.39 -> 1.40
---
Log message:
Handle alias sets that have been unified, and thus can have other references
to them. This fixes a regression in my previous checkin.
---
Diffs of the changes: (+3 -3)
AliasSetTracker.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Analysis/AliasSetTracker.cpp
diff -u llvm/lib/Analysis/AliasSetTracker.cpp:1.39
llvm/lib/Analysis/AliasSetTracker.cpp:1.40
--- llvm/lib/Analysis/AliasSetTracker.cpp:1.39 Tue Jun 27 18:48:59 2006
+++ llvm/lib/Analysis/AliasSetTracker.cpp Tue Jun 27 18:56:13 2006
@@ -378,9 +378,9 @@
}
// Stop using the alias set, removing it.
- assert(AS.RefCount == NumRefs);
- AS.RefCount = 0;
- AS.removeFromTracker(*this);
+ AS.RefCount -= NumRefs;
+ if (AS.RefCount == 0)
+ AS.removeFromTracker(*this);
}
bool AliasSetTracker::remove(Value *Ptr, unsigned Size) {
_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits