diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2006-09-17 16:23:36 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2006-09-17 16:23:36 +0000 |
commit | c7b465366a529b8e21f52fbdcc7073d6ca859c40 (patch) | |
tree | af564978a5cfb97c1937f39ad44a7557e179c3a8 /llvm/lib/Analysis | |
parent | 0ab01ff6e21be817772f18b0605a52aefa425b89 (diff) | |
download | bcm5719-llvm-c7b465366a529b8e21f52fbdcc7073d6ca859c40.tar.gz bcm5719-llvm-c7b465366a529b8e21f52fbdcc7073d6ca859c40.zip |
Fix PR912. The input to erase() must not be a reference to the data
being erased.
llvm-svn: 30442
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/AliasSetTracker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp index 6d09b65c6b8..39f01b613ec 100644 --- a/llvm/lib/Analysis/AliasSetTracker.cpp +++ b/llvm/lib/Analysis/AliasSetTracker.cpp @@ -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. |