mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 09:54:09 +00:00
Handle alias sets that have been unified, and thus can have other references
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
This commit is contained in:
parent
f299857496
commit
356d8c2499
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user