@@ -217,7 +217,7 @@ let record_primitive = function
217
217
upstreamed. At that point this helper can move into that module. *)
218
218
219
219
let preallocate_letrec ~bindings ~body =
220
- assert Config. flambda2 ;
220
+ assert ( Clflags. is_flambda2 () ) ;
221
221
let caml_update_dummy_prim =
222
222
Primitive. simple ~name: " caml_update_dummy" ~arity: 2 ~alloc: true
223
223
in
@@ -739,7 +739,7 @@ and transl_structure ~scopes loc fields cc rootpath final_env = function
739
739
transl_structure ~scopes loc (List. rev_append ids fields)
740
740
cc rootpath final_env rem
741
741
in
742
- if Config. flambda2 then
742
+ if Clflags. is_flambda2 () then
743
743
preallocate_letrec ~bindings: class_bindings ~body , size
744
744
else
745
745
let class_bindings =
@@ -1193,7 +1193,7 @@ let transl_store_structure ~scopes glob map prims aliases str =
1193
1193
let (ids, class_bindings) = transl_class_bindings ~scopes cl_list in
1194
1194
let body = store_idents Loc_unknown ids in
1195
1195
let lam =
1196
- if Config. flambda2 then
1196
+ if Clflags. is_flambda2 () then
1197
1197
preallocate_letrec
1198
1198
~bindings: class_bindings
1199
1199
~body
@@ -1570,7 +1570,7 @@ let transl_toplevel_item ~scopes item =
1570
1570
let (ids, class_bindings) = transl_class_bindings ~scopes cl_list in
1571
1571
List. iter set_toplevel_unique_name ids;
1572
1572
let body = make_sequence toploop_setvalue_id ids in
1573
- if Config. flambda2 then
1573
+ if Clflags. is_flambda2 () then
1574
1574
preallocate_letrec ~bindings: class_bindings ~body
1575
1575
else
1576
1576
let class_bindings =
0 commit comments