[llvm] r278645 - [ScopedNoAliasAA] Replace !ScopeNodes.size() with ScopeNodes.empty()
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 14 19:23:49 PDT 2016
Author: majnemer
Date: Sun Aug 14 21:23:48 2016
New Revision: 278645
URL: http://llvm.org/viewvc/llvm-project?rev=278645&view=rev
Log:
[ScopedNoAliasAA] Replace !ScopeNodes.size() with ScopeNodes.empty()
No functional change is intended.
Modified:
llvm/trunk/lib/Analysis/ScopedNoAliasAA.cpp
Modified: llvm/trunk/lib/Analysis/ScopedNoAliasAA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScopedNoAliasAA.cpp?rev=278645&r1=278644&r2=278645&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScopedNoAliasAA.cpp (original)
+++ llvm/trunk/lib/Analysis/ScopedNoAliasAA.cpp Sun Aug 14 21:23:48 2016
@@ -154,7 +154,7 @@ bool ScopedNoAliasAAResult::mayAliasInSc
SmallPtrSet<const MDNode *, 16> NANodes, ScopeNodes;
collectMDInDomain(NoAlias, Domain, NANodes);
collectMDInDomain(Scopes, Domain, ScopeNodes);
- if (!ScopeNodes.size())
+ if (ScopeNodes.empty())
continue;
// To not alias, all of the nodes in ScopeNodes must be in NANodes.
More information about the llvm-commits
mailing list