mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-30 05:36:44 +00:00
[SemaDeclCXX] Use isTemplateParamScope() rather than accessing raw bits.
llvm-svn: 252793
This commit is contained in:
parent
9d7899ef9c
commit
5be2233a81
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user