mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Fix PR912. The input to erase() must not be a reference to the data
being erased. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30442 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
93c2b37340
commit
38c7c42a32
@ -374,7 +374,8 @@ void AliasSetTracker::remove(AliasSet &AS) {
|
||||
++NumRefs;
|
||||
|
||||
// Finally, remove the entry.
|
||||
PointerMap.erase(P->first);
|
||||
Value *Remove = P->first;
|
||||
PointerMap.erase(Remove);
|
||||
}
|
||||
|
||||
// Stop using the alias set, removing it.
|
||||
|
Loading…
Reference in New Issue
Block a user