Skip to content

Commit 88b84c2

Browse files
committed
NFC: Remove an unnecessary use of NL_RemoveNonVisible
NL_QualifiedDefault already implies it.
1 parent 2baeb3d commit 88b84c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/CSDiagnostics.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,8 +1626,7 @@ bool AssignmentFailure::diagnoseAsError() {
16261626
if (auto typeContext = DC->getInnermostTypeContext()) {
16271627
SmallVector<ValueDecl *, 2> results;
16281628
DC->lookupQualified(typeContext->getSelfNominalTypeDecl(),
1629-
VD->getFullName(),
1630-
NL_QualifiedDefault | NL_RemoveNonVisible, results);
1629+
VD->getFullName(), NL_QualifiedDefault, results);
16311630

16321631
auto foundProperty = llvm::find_if(results, [&](ValueDecl *decl) {
16331632
// We're looking for a settable property that is the same type as the

0 commit comments

Comments
 (0)