OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f299857
)
Handle alias sets that have been unified, and thus can have other references
author
Chris Lattner
<sabre@nondot.org>
Tue, 27 Jun 2006 23:56:13 +0000
(23:56 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 27 Jun 2006 23:56:13 +0000
(23:56 +0000)
to them. This fixes a regression in my previous checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28951
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/AliasSetTracker.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/AliasSetTracker.cpp
b/lib/Analysis/AliasSetTracker.cpp
index
f805a43
..
16c6521
100644
(file)
--- a/
lib/Analysis/AliasSetTracker.cpp
+++ b/
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) {