summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-27 23:56:13 +0000
committerChris Lattner <sabre@nondot.org>2006-06-27 23:56:13 +0000
commit90213c6c1827c68abd88db73fef52cfd2c69f3d8 (patch)
tree1192cf85b408a91fd3d1b5aae7590afff293c680 /llvm/lib/Analysis
parentf4e0653b3ae8554b8ebc43d639d81d2236a4f5c7 (diff)
downloadbcm5719-llvm-90213c6c1827c68abd88db73fef52cfd2c69f3d8.tar.gz
bcm5719-llvm-90213c6c1827c68abd88db73fef52cfd2c69f3d8.zip
Handle alias sets that have been unified, and thus can have other references
to them. This fixes a regression in my previous checkin. llvm-svn: 28951
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/AliasSetTracker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp
index f805a43b4e7..16c652117f5 100644
--- a/llvm/lib/Analysis/AliasSetTracker.cpp
+++ b/llvm/lib/Analysis/AliasSetTracker.cpp
@@ -378,9 +378,9 @@ void AliasSetTracker::remove(AliasSet &AS) {
}
// 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) {
OpenPOWER on IntegriCloud