Skip to content

Commit 0620226

Browse files
authored
Merge pull request #62763 from apple/egorzhdan/cxx-op-lookup-false
[cxx-interop] Treat name lookup as successful if we found a C++ member operator
2 parents f55db69 + d663bb4 commit 0620226

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4074,9 +4074,11 @@ bool ClangImporter::Implementation::lookupValue(SwiftLookupTable &table,
40744074
if (auto func = dyn_cast_or_null<FuncDecl>(
40754075
importDeclReal(entry->getMostRecentDecl(), CurrentVersion))) {
40764076
if (auto synthesizedOperator =
4077-
importer->getCXXSynthesizedOperatorFunc(func))
4077+
importer->getCXXSynthesizedOperatorFunc(func)) {
40784078
consumer.foundDecl(synthesizedOperator,
40794079
DeclVisibilityKind::VisibleAtTopLevel);
4080+
declFound = true;
4081+
}
40804082
}
40814083
}
40824084
}

0 commit comments

Comments
 (0)