diff --git a/lib/Analysis/ScopedNoAliasAA.cpp b/lib/Analysis/ScopedNoAliasAA.cpp index 1c4d0fa94bf..e34a221e9f0 100644 --- a/lib/Analysis/ScopedNoAliasAA.cpp +++ b/lib/Analysis/ScopedNoAliasAA.cpp @@ -154,7 +154,7 @@ bool ScopedNoAliasAAResult::mayAliasInScopes(const MDNode *Scopes, SmallPtrSet 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.