[llvm-commits] CVS: llvm/lib/Analysis/AliasSetTracker.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 27 16:56:25 PDT 2006



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) {






More information about the llvm-commits mailing list