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:
Nick Lewycky 2006-09-17 16:23:36 +00:00
parent 93c2b37340
commit 38c7c42a32

View File

@ -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.