Skip to content

Commit a4bb168

Browse files
committed
misc
1 parent 6ae1f32 commit a4bb168

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

compiler/lib-wasm/generate.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ module Generate (Target : Target_sig.S) = struct
663663
| Constant c -> Constant.translate c
664664
| Special (Alias_prim _) -> assert false
665665
| Prim (Extern "caml_alloc_dummy_function", [ _; Pc (Int arity) ]) ->
666+
(* Removed in OCaml 5.2 *)
666667
Closure.dummy ~cps:(effects_cps ()) ~arity:(Targetint.to_int_exn arity)
667668
| Prim (Extern "caml_alloc_dummy_infix", _) ->
668669
Closure.dummy ~cps:(effects_cps ()) ~arity:1

compiler/lib/effects.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ let rewrite_instr ~st (instr : instr) : instr =
530530
st.in_cps := Var.Set.add x !(st.in_cps);
531531
Let (x, Closure (cps_params, cps_cont, None))
532532
| Let (x, Prim (Extern "caml_alloc_dummy_function", [ size; arity ])) -> (
533+
(* Removed in OCaml 5.2 *)
533534
match arity with
534535
| Pc (Int a) ->
535536
Let

compiler/lib/generate.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,7 @@ let rec translate_expr ctx loc x e level : (_ * J.statement_list) Expr_builder.t
14971497
let* fields = build_fields fields in
14981498
return (J.EObj fields)
14991499
| Extern "caml_alloc_dummy_function", [ _; size ] ->
1500+
(* Removed in Ocaml 5.2 *)
15001501
let* i =
15011502
let* cx = access' ~ctx size in
15021503
return

compiler/tests-check-prim/gen_dune.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ type version =
88
| `V5_2
99
| `V5_3
1010
| `V5_4
11+
| `V5_5
1112
]
1213

1314
let string_of_version : version -> string = function
@@ -18,6 +19,7 @@ let string_of_version : version -> string = function
1819
| `V5_2 -> "5.2"
1920
| `V5_3 -> "5.3"
2021
| `V5_4 -> "5.4"
22+
| `V5_5 -> "5.5"
2123

2224
let next_version : version -> version option = function
2325
| `V4_13 -> Some `V4_14
@@ -26,7 +28,8 @@ let next_version : version -> version option = function
2628
| `V5_1 -> Some `V5_2
2729
| `V5_2 -> Some `V5_3
2830
| `V5_3 -> Some `V5_4
29-
| `V5_4 -> None
31+
| `V5_4 -> Some `V5_5
32+
| `V5_5 -> None
3033

3134
type os_type =
3235
| Unix

0 commit comments

Comments
 (0)