Fix PR912. The input to erase() must not be a reference to the data

being erased.

llvm-svn: 30442
This commit is contained in:
Nick Lewycky
2006-09-17 16:23:36 +00:00
parent 0ab01ff6e2
commit c7b465366a

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.