summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-05-26 22:50:22 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-05-26 22:50:22 -0700
commita88908c3a44db6bc372d5ec30ebd74e73919efc0 (patch)
treee5695054a6bf1e1638d45db7c704a59bdd02e29c
parentb8d7cdf2d40f2d2cfd6fb3667dbfb3b4ae3b97b0 (diff)
downloadtxr-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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ffi.c b/ffi.c
index 53a0a18b..8b0de20a 100644
--- a/ffi.c
+++ b/ffi.c
@@ -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;