diff options
author | Anthony Green <green@moxielogic.com> | 2022-09-24 21:41:02 -0400 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2022-09-24 21:41:02 -0400 |
commit | a2473cde0a02c096dc3e0b57f0cb73f598765570 (patch) | |
tree | d7b450bd5b74349e2c1137260a31401fe872518b /src/or1k | |
parent | f93224d38662a8cdc33ca56fe6f2d5650a86d690 (diff) | |
download | libffi-a2473cde0a02c096dc3e0b57f0cb73f598765570.tar.gz |
or1k: All struct args are passed in memory
Diffstat (limited to 'src/or1k')
-rw-r--r-- | src/or1k/ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or1k/ffi.c b/src/or1k/ffi.c index c8ed110..9451d4e 100644 --- a/src/or1k/ffi.c +++ b/src/or1k/ffi.c @@ -139,7 +139,7 @@ void ffi_call(ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue) { ffi_type *at = cif->arg_types[i]; int size = at->size; - if (at->type == FFI_TYPE_STRUCT && size > 4) + if (at->type == FFI_TYPE_STRUCT) /* && size > 4) All struct args? */ { char *argcopy = alloca (size); memcpy (argcopy, avalue[i], size); |