diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-06-27 23:56:13 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-06-27 23:56:13 +0000 | 
| commit | 90213c6c1827c68abd88db73fef52cfd2c69f3d8 (patch) | |
| tree | 1192cf85b408a91fd3d1b5aae7590afff293c680 /llvm/lib/Analysis | |
| parent | f4e0653b3ae8554b8ebc43d639d81d2236a4f5c7 (diff) | |
| download | bcm5719-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.cpp | 6 | 
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) {  | 

