From: Davide Italiano Date: Wed, 11 Nov 2015 20:06:35 +0000 (+0000) Subject: [SemaDeclCXX] Use isTemplateParamScope() rather than accessing raw bits. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f286e5ce162894d09b4a3697e6d1c3d9c73cbae;p=clang [SemaDeclCXX] Use isTemplateParamScope() rather than accessing raw bits. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252793 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index 6c308ef9e6..74bffb2a04 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -7572,7 +7572,7 @@ Decl *Sema::ActOnUsingDirective(Scope *S, assert(IdentLoc.isValid() && "Invalid NamespceName location."); // This can only happen along a recovery path. - while (S->getFlags() & Scope::TemplateParamScope) + while (S->isTemplateParamScope()) S = S->getParent(); assert(S->getFlags() & Scope::DeclScope && "Invalid Scope."); @@ -8531,7 +8531,7 @@ Decl *Sema::ActOnAliasDeclaration(Scope *S, TypeResult Type, Decl *DeclFromDeclSpec) { // Skip up to the relevant declaration scope. - while (S->getFlags() & Scope::TemplateParamScope) + while (S->isTemplateParamScope()) S = S->getParent(); assert((S->getFlags() & Scope::DeclScope) && "got alias-declaration outside of declaration scope");