Skip to content

Commit 9d5e06c

Browse files
committed
[cxx-interop] Revert hasCopyTypeOperations to the old behavior to get Swift Compiler Sources building.
1 parent 615062d commit 9d5e06c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6489,9 +6489,8 @@ static bool hasCopyTypeOperations(const clang::CXXRecordDecl *decl) {
64896489
}))
64906490
return false;
64916491

6492-
return llvm::any_of(decl->ctors(), [](clang::CXXConstructorDecl *ctor) {
6493-
return ctor->isCopyConstructor();
6494-
});
6492+
// TODO: this should probably check to make sure we actually have a copy ctor.
6493+
return true;
64956494
}
64966495

64976496
static bool hasMoveTypeOperations(const clang::CXXRecordDecl *decl) {

0 commit comments

Comments
 (0)