Remove NameLookupFlags::KnownPrivate

This commit is contained in:
Robert Widmann
2020-07-23 18:26:00 -07:00
parent 259e1a94c9
commit ee35a4fe18
11 changed files with 20 additions and 60 deletions

View File

@@ -3458,8 +3458,7 @@ class ObjCSelectorWalker : public ASTWalker {
auto nominal = method->getDeclContext()->getSelfNominalTypeDecl();
auto result = TypeChecker::lookupMember(
const_cast<DeclContext *>(DC), nominal->getDeclaredInterfaceType(),
DeclNameRef(lookupName),
(defaultMemberLookupOptions | NameLookupFlags::KnownPrivate));
DeclNameRef(lookupName), defaultMemberLookupOptions);
// If we didn't find multiple methods, there is no ambiguity.
if (result.size() < 2) return false;