diff options
Diffstat (limited to 'src/boot/me')
| -rw-r--r-- | src/boot/me/trans.ml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/boot/me/trans.ml b/src/boot/me/trans.ml index 069fdb59..832ccd1f 100644 --- a/src/boot/me/trans.ml +++ b/src/boot/me/trans.ml @@ -4998,8 +4998,12 @@ let trans_visitor libstr; symstr |]; - abi.Abi.abi_emit_native_call_in_thunk (emitter()) - out nabi (Il.Cell f) args; + abi.Abi.abi_emit_native_call_in_thunk + (emitter()) + (if pointee_type out = Il.NilTy then None else Some out) + nabi + (Il.Cell f) + args; end | _ -> bug () |