Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit ea88681

Browse files
committed
[[ Bug 20644 ]] Arm64 does not have a _stret variant
1 parent dd81de3 commit ea88681

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

libscript/src/script-execute.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class MCScriptForeignInvocation
268268
/* There are different variants of objc_msgSend we need to use
269269
* depending on architecture and return type:
270270
* struct return
271-
* arm64: _stret if struct size > 64 bytes
271+
* arm64: only has objc_msgSend
272272
* arm: _stret if struct size > 4 bytes
273273
* x86-64: _stret if struct size > 16 bytes
274274
* i386: _stret if struct size >= 8 bytes or
@@ -295,11 +295,7 @@ class MCScriptForeignInvocation
295295
void (*t_objc_msgSend)() = nullptr;
296296
size_t t_rsize = t_cif->rtype->size;
297297
#if defined(__ARM64__)
298-
if (t_cif->rtype->type == FFI_TYPE_STRUCT &&
299-
t_rsize > 64)
300-
t_objc_msgSend = (void(*)())objc_msgSend_stret;
301-
else
302-
t_objc_msgSend = (void(*)())objc_msgSend;
298+
t_objc_msgSend = (void(*)())objc_msgSend;
303299
#elif defined(__ARM__)
304300
if (t_cif->rtype->type == FFI_TYPE_STRUCT &&
305301
t_rsize > 4)

0 commit comments

Comments
 (0)