File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments