aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-08-11 23:09:56 +0000
committerXinliang David Li <davidxl@google.com>2016-08-11 23:09:56 +0000
commit1ce88fa0a5dc1bf661cee9bf3f738500bf48019c (patch)
treea70f72b0e27f27fec41585f5cb34a67228191eca
parent6aaeb9b1859010589c8522765c46204729d85d60 (diff)
downloadllvm-1ce88fa0a5dc1bf661cee9bf3f738500bf48019c.zip
llvm-1ce88fa0a5dc1bf661cee9bf3f738500bf48019c.tar.gz
llvm-1ce88fa0a5dc1bf661cee9bf3f738500bf48019c.tar.bz2
Add comment /NFC
llvm-svn: 278438
-rw-r--r--llvm/lib/Analysis/AliasSetTracker.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp
index 18ba959..08452c9 100644
--- a/llvm/lib/Analysis/AliasSetTracker.cpp
+++ b/llvm/lib/Analysis/AliasSetTracker.cpp
@@ -468,8 +468,9 @@ void AliasSetTracker::copyValue(Value *From, Value *To) {
AliasSet::PointerRec &Entry = getEntryFor(To);
if (Entry.hasAliasSet()) return; // Already in the tracker!
- // Add it to the alias set it aliases...
+ // getEntryFor above may invalidate iterator \c I, so reinitialize it.
I = PointerMap.find_as(From);
+ // Add it to the alias set it aliases...
AliasSet *AS = I->second->getAliasSet(*this);
AS->addPointer(*this, Entry, I->second->getSize(),
I->second->getAAInfo(),