Fix the bootstrap build.

Otherwise, referring to swift_ASTGen_bridgedSwiftClosureCall_1 results in
a linker error on a bootstrap build (i.e., without Swift host tools
available).
This commit is contained in:
3405691582
2025-04-03 16:40:47 -04:00
parent e49afc8797
commit 782ef64931

View File

@@ -146,7 +146,11 @@ swift_ASTGen_bridgedSwiftClosureCall_1(const void *_Nonnull closure,
const void *_Nullable arg1);
void BridgedSwiftClosure::operator()(const void *_Nullable arg1) {
#if SWIFT_BUILD_SWIFT_SYNTAX
swift_ASTGen_bridgedSwiftClosureCall_1(closure, arg1);
#else
llvm_unreachable("Must not be used in C++-only build");
#endif
}
SWIFT_END_NULLABILITY_ANNOTATIONS