Skip to content

Commit a452a41

Browse files
authored
Merge pull request #80508 from 3405691582/bootstrap
Fix the bootstrap build.
2 parents 0e2ca9a + 782ef64 commit a452a41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/swift/Basic/BasicBridgingImpl.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ swift_ASTGen_bridgedSwiftClosureCall_1(const void *_Nonnull closure,
146146
const void *_Nullable arg1);
147147

148148
void BridgedSwiftClosure::operator()(const void *_Nullable arg1) {
149+
#if SWIFT_BUILD_SWIFT_SYNTAX
149150
swift_ASTGen_bridgedSwiftClosureCall_1(closure, arg1);
151+
#else
152+
llvm_unreachable("Must not be used in C++-only build");
153+
#endif
150154
}
151155

152156
SWIFT_END_NULLABILITY_ANNOTATIONS

0 commit comments

Comments
 (0)