Skip to content

Commit 1b667ee

Browse files
committed
Fix the upstream backend (credit: xclerc)
1 parent f119704 commit 1b667ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/asmcomp/cmm_helpers.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2210,7 +2210,7 @@ let send_function (arity, result, mode) =
22102210
let fun_name = send_function_name arity result mode in
22112211
let fun_args =
22122212
[obj, typ_val; tag, typ_int; cache, typ_addr]
2213-
@ List.map (fun id -> (id, typ_val)) (List.tl args) in
2213+
@ List.combine (List.tl args) arity in
22142214
let fun_dbg = placeholder_fun_dbg ~human_name:fun_name in
22152215
Cfunction
22162216
{fun_name;

0 commit comments

Comments
 (0)