Skip to content

Commit 0c0a98d

Browse files
authored
Merge pull request #85943 from egorzhdan/egorzhdan/std-function-compile-error
[cxx-interop] Fix compile error
2 parents 4730181 + 39d13c4 commit 0c0a98d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ClangImporter/SwiftDeclSynthesizer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2951,7 +2951,8 @@ synthesizeFunctionConstructorBody(AbstractFunctionDecl *afd, void *context) {
29512951
auto wrapperInstCtorIt =
29522952
llvm::find_if(wrapperInstDecl->getMembers(), [&](Decl *member) -> bool {
29532953
if (auto wrapperCtor = dyn_cast<ConstructorDecl>(member)) {
2954-
return wrapperCtor->isMemberwiseInitializer();
2954+
return wrapperCtor->isMemberwiseInitializer() ==
2955+
MemberwiseInitKind::Regular;
29552956
}
29562957
return false;
29572958
});

0 commit comments

Comments
 (0)