diff options
author | Devang Patel <dpatel@apple.com> | 2009-03-30 18:34:47 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-03-30 18:34:47 +0000 |
commit | 5d11d4303c5e450e0980bb93eaf3b916bc326554 (patch) | |
tree | ab0f8789ecb30eaf767430496ae51a596ef3959c /lib/Analysis | |
parent | 6abf8753925f44c962ff39387100dc2b1cd85301 (diff) | |
download | external_llvm-5d11d4303c5e450e0980bb93eaf3b916bc326554.zip external_llvm-5d11d4303c5e450e0980bb93eaf3b916bc326554.tar.gz external_llvm-5d11d4303c5e450e0980bb93eaf3b916bc326554.tar.bz2 |
getEntryFor() may invalidate DenseMap iterator.
Walking an invalidated iterator is not a good idea.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/AliasSetTracker.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp index a386a49..18c2b66 100644 --- a/lib/Analysis/AliasSetTracker.cpp +++ b/lib/Analysis/AliasSetTracker.cpp @@ -520,6 +520,7 @@ void AliasSetTracker::copyValue(Value *From, Value *To) { if (Entry.hasAliasSet()) return; // Already in the tracker! // Add it to the alias set it aliases... + I = PointerMap.find(From); AliasSet *AS = I->second->getAliasSet(*this); AS->addPointer(*this, Entry, I->second->getSize(), true); } |