Fix PR912. The input to erase() must not be a reference to the data
being erased. llvm-svn: 30442
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user