diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2006-09-17 17:51:00 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2006-09-17 17:51:00 +0000 |
commit | e81f725b3ab681ba4beaac0ba03c1a1296454680 (patch) | |
tree | 3effec7737f3293dab5984af9a37fe0f58f3f06a /lib/Analysis/AliasSetTracker.cpp | |
parent | 38c7c42a32b319bc2a603fe6d4e3289b5451c150 (diff) |
Explain change with a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/AliasSetTracker.cpp')
-rw-r--r-- | lib/Analysis/AliasSetTracker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp index 39f01b613e..852def0b76 100644 --- a/lib/Analysis/AliasSetTracker.cpp +++ b/lib/Analysis/AliasSetTracker.cpp @@ -374,8 +374,8 @@ void AliasSetTracker::remove(AliasSet &AS) { ++NumRefs; // Finally, remove the entry. - Value *Remove = P->first; - PointerMap.erase(Remove); + Value *Remove = P->first; // Take a copy because it is invalid to pass + PointerMap.erase(Remove); // a reference to the data being erased. } // Stop using the alias set, removing it. |