File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ extern uintptr_t __COMPATIBILITY_LIBRARIES_CANNOT_CHECK_THE_IS_SWIFT_BIT_DIRECTL
252252// differs from the standard calling convention. Currently this is only used for
253253// swift_retain, swift_release, and some internal helper functions that they
254254// call.
255- #if defined(__aarch64__)
255+ #if defined(__aarch64__) && !SWIFT_RUNTIME_EMBEDDED
256256#define SWIFT_REFCOUNT_CC SWIFT_CC_PreserveMost
257257#define SWIFT_REFCOUNT_CC_PRESERVEMOST 1
258258#else
Original file line number Diff line number Diff line change @@ -59,8 +59,10 @@ namespace swift {
5959template <typename Ret, typename Param>
6060Param returnTypeHelper(Ret (*)(Param)) {}
6161
62+ #if SWIFT_REFCOUNT_CC_PRESERVEMOST
6263template <typename Ret, typename Param>
6364Param returnTypeHelper (SWIFT_REFCOUNT_CC Ret (*)(Param)) {}
65+ #endif
6466
6567#if defined(__LP64__) || defined(_LP64)
6668#define REGISTER_SUBSTITUTION_PREFIX " "
You can’t perform that action at this time.
0 commit comments