[llvm] r278438 - Add comment /NFC
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 16:09:56 PDT 2016
Author: davidxl
Date: Thu Aug 11 18:09:56 2016
New Revision: 278438
URL: http://llvm.org/viewvc/llvm-project?rev=278438&view=rev
Log:
Add comment /NFC
Modified:
llvm/trunk/lib/Analysis/AliasSetTracker.cpp
Modified: llvm/trunk/lib/Analysis/AliasSetTracker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/AliasSetTracker.cpp?rev=278438&r1=278437&r2=278438&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/AliasSetTracker.cpp (original)
+++ llvm/trunk/lib/Analysis/AliasSetTracker.cpp Thu Aug 11 18:09:56 2016
@@ -468,8 +468,9 @@ void AliasSetTracker::copyValue(Value *F
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(),
More information about the llvm-commits
mailing list