File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1422,7 +1422,7 @@ bool DeclContext::Encloses(const DeclContext *DC) const {
14221422 return getPrimaryContext ()->Encloses (DC);
14231423
14241424 for (; DC; DC = DC->getParent ())
1425- if (!isa<LinkageSpecDecl>(DC) && !isa< ExportDecl>(DC) &&
1425+ if (!isa<LinkageSpecDecl, ExportDecl>(DC) &&
14261426 DC->getPrimaryContext () == this )
14271427 return true ;
14281428 return false ;
@@ -1433,7 +1433,7 @@ bool DeclContext::LexicallyEncloses(const DeclContext *DC) const {
14331433 return getPrimaryContext ()->LexicallyEncloses (DC);
14341434
14351435 for (; DC; DC = DC->getLexicalParent ())
1436- if (!isa<LinkageSpecDecl>(DC) && !isa< ExportDecl>(DC) &&
1436+ if (!isa<LinkageSpecDecl, ExportDecl>(DC) &&
14371437 DC->getPrimaryContext () == this )
14381438 return true ;
14391439 return false ;
You can’t perform that action at this time.
0 commit comments