diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-26 22:50:22 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-26 22:50:22 -0700 |
commit | a88908c3a44db6bc372d5ec30ebd74e73919efc0 (patch) | |
tree | e5695054a6bf1e1638d45db7c704a59bdd02e29c | |
parent | b8d7cdf2d40f2d2cfd6fb3667dbfb3b4ae3b97b0 (diff) | |
download | txr-a88908c3a44db6bc372d5ec30ebd74e73919efc0.tar.gz txr-a88908c3a44db6bc372d5ec30ebd74e73919efc0.tar.bz2 txr-a88908c3a44db6bc372d5ec30ebd74e73919efc0.zip |
ffi: remove redundant flag calc in call wrapper.
* ffi.c (ffi_call_wrap): Don't calculate in_pass_needed
in put loop, since we already calculated it in the argument
buffer allocation loop.
-rw-r--r-- | ffi.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -2403,7 +2403,6 @@ val ffi_call_wrap(val fptr, val ffi_call_desc, struct args *args) for (i = 0; i < n; i++) { struct txr_ffi_type *mtft = type[i]; mtft->put(mtft, args->arg[i], convert(mem_t *, values[i]), self); - in_pass_needed = in_pass_needed || mtft->in != 0; } cleanup_needed = 0; |