[SemaDeclCXX] Use isTemplateParamScope() rather than accessing raw bits.

llvm-svn: 252793
This commit is contained in:
Davide Italiano 2015-11-11 20:06:35 +00:00
parent 9d7899ef9c
commit 5be2233a81
1 changed files with 2 additions and 2 deletions

View File

@ -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");