Skip to content

Commit ba7e6e4

Browse files
committed
[cxx-interop] Fix predicate to find copy assignment operators.
1 parent d5e88d9 commit ba7e6e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5858,6 +5858,7 @@ static bool copyAssignOperatorIsDefaulted(const clang::CXXRecordDecl *decl) {
58585858
auto copyAssignOp = llvm::find_if(decl->decls(), [](clang::Decl *member) {
58595859
if (auto method = dyn_cast<clang::CXXMethodDecl>(member))
58605860
return method->isCopyAssignmentOperator();
5861+
return false;
58615862
});
58625863

58635864
assert(copyAssignOp != decl->decls_end());

0 commit comments

Comments
 (0)