@@ -300,7 +300,7 @@ let cps_branch ~st ~src (pc, args) loc =
300300 (* We are jumping to a block that is also used as a continuation.
301301 We pass it a dummy argument. *)
302302 let x = Var. fresh () in
303- [ x ], [ Let (x, Constant (Int 0l )), noloc ]
303+ [ x ], [ Let (x, Constant (Int Targetint. zero )), noloc ]
304304 else args, []
305305 in
306306 (* We check the stack depth only for backward edges (so, at
@@ -402,7 +402,9 @@ let cps_last ~st ~alloc_jump_closures pc ((last, last_loc) : last * loc) ~k :
402402 ( x'
403403 , Prim
404404 ( Extern " caml_maybe_attach_backtrace"
405- , [ Pv x; Pc (Int (if force then 1l else 0l )) ] ) )
405+ , [ Pv x
406+ ; Pc (Int (if force then Targetint. one else Targetint. zero))
407+ ] ) )
406408 , noloc )
407409 ]
408410 in
@@ -483,7 +485,8 @@ let cps_instr ~st (instr : instr) : instr =
483485 | Pc (Int a ) ->
484486 Let
485487 ( x
486- , Prim (Extern " caml_alloc_dummy_function" , [ size; Pc (Int (Int32. succ a)) ])
488+ , Prim
489+ (Extern " caml_alloc_dummy_function" , [ size; Pc (Int (Targetint. succ a)) ])
487490 )
488491 | _ -> assert false )
489492 | Let (x , Apply { f; args; _ } ) when not (Var.Set. mem x st.cps_needed) ->
@@ -562,7 +565,7 @@ let cps_block ~st ~k pc block =
562565 [ arg; k' ]
563566 loc)
564567 | Prim (Extern "%perform" , [ Pv effect_ ]) ->
565- perform_effect ~effect_ ~continuation: (Pc (Int 0l )) loc
568+ perform_effect ~effect_ ~continuation: (Pc (Int Targetint. zero )) loc
566569 | Prim (Extern "%reperform" , [ Pv effect_ ; continuation ]) ->
567570 perform_effect ~effect_ ~continuation loc
568571 | _ -> None
0 commit comments