@@ -300,7 +300,7 @@ let cps_branch ~st ~src (pc, args) loc =
300
300
(* We are jumping to a block that is also used as a continuation.
301
301
We pass it a dummy argument. *)
302
302
let x = Var. fresh () in
303
- [ x ], [ Let (x, Constant (Int 0l )), noloc ]
303
+ [ x ], [ Let (x, Constant (Int Targetint. zero )), noloc ]
304
304
else args, []
305
305
in
306
306
(* 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 :
402
402
( x'
403
403
, Prim
404
404
( 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
+ ] ) )
406
408
, noloc )
407
409
]
408
410
in
@@ -483,7 +485,8 @@ let cps_instr ~st (instr : instr) : instr =
483
485
| Pc (Int a ) ->
484
486
Let
485
487
( 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)) ])
487
490
)
488
491
| _ -> assert false )
489
492
| 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 =
562
565
[ arg; k' ]
563
566
loc)
564
567
| Prim (Extern "%perform" , [ Pv effect_ ]) ->
565
- perform_effect ~effect_ ~continuation: (Pc (Int 0l )) loc
568
+ perform_effect ~effect_ ~continuation: (Pc (Int Targetint. zero )) loc
566
569
| Prim (Extern "%reperform" , [ Pv effect_ ; continuation ]) ->
567
570
perform_effect ~effect_ ~continuation loc
568
571
| _ -> None
0 commit comments