summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/AliasSetTracker.cpp
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2019-01-28 19:38:03 +0000
committerAlina Sbirlea <asbirlea@google.com>2019-01-28 19:38:03 +0000
commit8e1d65771ab8d67a82a9e2819669456f53a38c39 (patch)
treed22ca1a0d635242735235baee7d93f0353b5031b /llvm/lib/Analysis/AliasSetTracker.cpp
parentb4980cd84f4c80f7c6b505972390c56ea34a0ac8 (diff)
downloadbcm5719-llvm-8e1d65771ab8d67a82a9e2819669456f53a38c39.tar.gz
bcm5719-llvm-8e1d65771ab8d67a82a9e2819669456f53a38c39.zip
[AliasSetTracker] Cleanup more comments. [NFCI]
llvm-svn: 352416
Diffstat (limited to 'llvm/lib/Analysis/AliasSetTracker.cpp')
-rw-r--r--llvm/lib/Analysis/AliasSetTracker.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp
index de223043010..6b4240c108d 100644
--- a/llvm/lib/Analysis/AliasSetTracker.cpp
+++ b/llvm/lib/Analysis/AliasSetTracker.cpp
@@ -301,10 +301,12 @@ AliasSet *AliasSetTracker::mergeAliasSetsForPointer(const Value *Ptr,
iterator Cur = I++;
if (Cur->Forward || !Cur->aliasesPointer(Ptr, Size, AAInfo, AA)) continue;
- if (!FoundSet) { // If this is the first alias set ptr can go into.
- FoundSet = &*Cur; // Remember it.
- } else { // Otherwise, we must merge the sets.
- FoundSet->mergeSetIn(*Cur, *this); // Merge in contents.
+ if (!FoundSet) {
+ // If this is the first alias set ptr can go into, remember it.
+ FoundSet = &*Cur;
+ } else {
+ // Otherwise, we must merge the sets.
+ FoundSet->mergeSetIn(*Cur, *this);
}
}
OpenPOWER on IntegriCloud