@@ -198,7 +198,8 @@ let rec block_escape st x =
198198 | Immutable -> ()
199199 | Maybe_mutable -> Code.Var.ISet. add st.possibly_mutable y);
200200 Array. iter l ~f: (fun z -> block_escape st z)
201- | Expr (Prim (Extern "caml_make_array" , [ Pv y ])) -> block_escape st y
201+ | Expr (Prim (Extern "caml_array_of_uniform_array" , [ Pv y ])) ->
202+ block_escape st y
202203 | _ -> Code.Var.ISet. add st.possibly_mutable y))
203204 (Var.Tbl. get st.known_origins x)
204205
@@ -208,7 +209,7 @@ let expr_escape st _x e =
208209 | Apply { args; _ } -> List. iter args ~f: (fun x -> block_escape st x)
209210 | Prim (Array_get, [ Pv x ; _ ]) -> block_escape st x
210211 | Prim ((Vectlength | Array_get | Not | IsInt | Eq | Neq | Lt | Le | Ult ), _ ) -> ()
211- | Prim (Extern "caml_make_array " , [ Pv _ ]) -> ()
212+ | Prim (Extern "caml_array_of_uniform_array " , [ Pv _ ]) -> ()
212213 | Prim (Extern name , l ) ->
213214 let ka =
214215 match Primitive. kind_args name with
@@ -233,7 +234,7 @@ let expr_escape st _x e =
233234 | Expr (Constant (Tuple _ )) -> ()
234235 | Expr (Block (_ , a , _ , _ )) ->
235236 Array. iter a ~f: (fun x -> block_escape st x)
236- | Expr (Prim (Extern "caml_make_array " , [ Pv y ])) -> (
237+ | Expr (Prim (Extern "caml_array_of_uniform_array " , [ Pv y ])) -> (
237238 match st.defs.(Var. idx y) with
238239 | Expr (Block (_ , a , _ , _ )) ->
239240 Array. iter a ~f: (fun x -> block_escape st x)
@@ -416,7 +417,7 @@ let the_native_string_of ~target info x =
416417let the_block_contents_of info x =
417418 match the_def_of info x with
418419 | Some (Block (_ , a , _ , _ )) -> Some a
419- | Some (Prim (Extern "caml_make_array " , [ x ])) -> (
420+ | Some (Prim (Extern "caml_array_of_uniform_array " , [ x ])) -> (
420421 match the_def_of info x with
421422 | Some (Block (_ , a , _ , _ )) -> Some a
422423 | _ -> None )
0 commit comments