Skip to content

Commit dc4ff8c

Browse files
committed
Also resolve accessibility here, since we use it.
1 parent 1e6f813 commit dc4ff8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/AST/LookupVisibleDecls.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ static bool areTypeDeclsVisibleInLookupMode(LookupState LS) {
119119
static bool isDeclVisibleInLookupMode(ValueDecl *Member, LookupState LS,
120120
const DeclContext *FromContext,
121121
LazyResolver *TypeResolver) {
122-
if (TypeResolver)
122+
if (TypeResolver) {
123123
TypeResolver->resolveDeclSignature(Member);
124+
TypeResolver->resolveAccessibility(Member);
125+
}
124126

125127
// Check accessibility when relevant.
126128
if (!Member->getDeclContext()->isLocalContext() &&

0 commit comments

Comments
 (0)