[ScopedNoAliasAA] Replace !ScopeNodes.size() with ScopeNodes.empty()
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 15 Aug 2016 02:23:48 +0000 (02:23 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 15 Aug 2016 02:23:48 +0000 (02:23 +0000)
No functional change is intended.

llvm-svn: 278645

llvm/lib/Analysis/ScopedNoAliasAA.cpp

index 1c4d0fa..e34a221 100644 (file)
@@ -154,7 +154,7 @@ bool ScopedNoAliasAAResult::mayAliasInScopes(const MDNode *Scopes,
     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.