commit | 38c7c42a32b319bc2a603fe6d4e3289b5451c150 | [log] [tgz] |
---|---|---|
author | Nick Lewycky <nicholas@mxc.ca> | Sun Sep 17 16:23:36 2006 +0000 |
committer | Nick Lewycky <nicholas@mxc.ca> | Sun Sep 17 16:23:36 2006 +0000 |
tree | 6a92106291178e2876d04a00b83611e9f3da9953 | |
parent | 93c2b373409661798b7e191427a33791616a8ef6 [diff] [blame] |
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
diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp index 6d09b65..39f01b6 100644 --- a/lib/Analysis/AliasSetTracker.cpp +++ b/lib/Analysis/AliasSetTracker.cpp
@@ -374,7 +374,8 @@ ++NumRefs; // Finally, remove the entry. - PointerMap.erase(P->first); + Value *Remove = P->first; + PointerMap.erase(Remove); } // Stop using the alias set, removing it.