mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user