File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1371,13 +1371,9 @@ void ClassDecl::recordObjCMethod(AbstractFunctionDecl *method,
1371
1371
// /
1372
1372
// / This utility is used by qualified name lookup.
1373
1373
static void configureLookup (const DeclContext *dc,
1374
- NLOptions & options,
1374
+ NLOptions options,
1375
1375
ReferencedNameTracker *&tracker,
1376
1376
bool &isLookupCascading) {
1377
- auto &ctx = dc->getASTContext ();
1378
- if (ctx.isAccessControlDisabled ())
1379
- options |= NL_IgnoreAccessControl;
1380
-
1381
1377
// Find the dependency tracker we'll need for this lookup.
1382
1378
tracker = nullptr ;
1383
1379
if (auto containingSourceFile =
@@ -1439,7 +1435,8 @@ static bool isAcceptableLookupResult(const DeclContext *dc,
1439
1435
}
1440
1436
1441
1437
// Check access.
1442
- if (!(options & NL_IgnoreAccessControl)) {
1438
+ if (!(options & NL_IgnoreAccessControl) &&
1439
+ !dc->getASTContext ().isAccessControlDisabled ()) {
1443
1440
return decl->isAccessibleFrom (dc);
1444
1441
}
1445
1442
You can’t perform that action at this time.
0 commit comments