Skip to content

Commit bddebc5

Browse files
committed
Don't define SWIFT_USE_SWIFTCALL if there is no such attribute
1 parent 243baa1 commit bddebc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Runtime/Config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
/// Does the current Swift platform use LLVM's intrinsic "swiftcall"
3636
/// calling convention for Swift functions?
3737
#ifndef SWIFT_USE_SWIFTCALL
38-
#ifdef __s390x__
38+
#if __has_attribute(swiftcall)
3939
#define SWIFT_USE_SWIFTCALL 1
4040
#else
41-
#define SWIFT_USE_SWIFTCALL 1
41+
#define SWIFT_USE_SWIFTCALL 0
4242
#endif
4343
#endif
4444

0 commit comments

Comments
 (0)