Skip to content

Commit 6884b9f

Browse files
committed
fix build
1 parent 3263532 commit 6884b9f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

middle_end/closure/closure.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,12 +1173,11 @@ let rec close ({ backend; fenv; cenv ; mutable_vars; kinds; catch_env } as env)
11731173
fail_if_probe ~probe "Unknown function";
11741174
(Ugeneric_apply(ufunct, uargs, List.map (fun _ -> Lambda.layout_top) uargs, ap_result_layout, (pos, mode), dbg), Value_unknown)
11751175
end
1176-
| Lsend(kind, met, obj, args, pos, mode, loc, _result_layout) ->
1176+
| Lsend(kind, met, obj, args, pos, mode, loc, result_layout) ->
11771177
let (umet, _) = close env met in
11781178
let (uobj, _) = close env obj in
11791179
let dbg = Debuginfo.from_location loc in
1180-
let args_layout = assert false in
1181-
let result_layout = assert false in
1180+
let args_layout = List.map (fun _ -> Lambda.layout_top) args in
11821181
(Usend(kind, umet, uobj, close_list env args, args_layout, result_layout, (pos,mode), dbg),
11831182
Value_unknown)
11841183
| Llet(str, kind, id, lam, body) ->

0 commit comments

Comments
 (0)