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 | 6e114c1e82d0ebe2611a4ab1ea6c68e88a90524f (patch) | |
tree | e5695054a6bf1e1638d45db7c704a59bdd02e29c /ffi.c | |
parent | 707d9e93bbcd482773751a37c0f9191a3a57b6a0 (diff) | |
download | txr-6e114c1e82d0ebe2611a4ab1ea6c68e88a90524f.tar.gz txr-6e114c1e82d0ebe2611a4ab1ea6c68e88a90524f.tar.bz2 txr-6e114c1e82d0ebe2611a4ab1ea6c68e88a90524f.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.
Diffstat (limited to 'ffi.c')
-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; |