@@ -889,14 +889,14 @@ and transl_exp0 (e : Typedtree.expression) : Lambda.lambda =
889
889
(Pfield (lbl.lbl_pos, ! Lambda. fld_record lbl), [ targ ], e.exp_loc)
890
890
| Record_inlined _ ->
891
891
Lprim
892
- ( Pfield (lbl.lbl_pos, Fld_record_inline { name = lbl.lbl_name } ),
892
+ ( Pfield (lbl.lbl_pos, ! Lambda. fld_record_inline lbl ),
893
893
[ targ ],
894
894
e.exp_loc )
895
895
| Record_unboxed _ -> targ
896
896
| Record_extension ->
897
897
Lprim
898
898
( Pfield
899
- (lbl.lbl_pos + 1 , Fld_record_extension { name = lbl.lbl_name } ),
899
+ (lbl.lbl_pos + 1 , ! Lambda. fld_record_extension lbl ),
900
900
[ targ ],
901
901
e.exp_loc ))
902
902
| Texp_setfield (arg , _ , lbl , newval ) ->
@@ -906,10 +906,10 @@ and transl_exp0 (e : Typedtree.expression) : Lambda.lambda =
906
906
| Record_regular | Record_optional_labels _ ->
907
907
Psetfield (lbl.lbl_pos, ! Lambda. fld_record_set lbl)
908
908
| Record_inlined _ ->
909
- Psetfield (lbl.lbl_pos, Fld_record_inline_set lbl.lbl_name )
909
+ Psetfield (lbl.lbl_pos, ! Lambda. fld_record_inline_set lbl)
910
910
| Record_unboxed _ -> assert false
911
911
| Record_extension ->
912
- Psetfield (lbl.lbl_pos + 1 , Fld_record_extension_set lbl.lbl_name )
912
+ Psetfield (lbl.lbl_pos + 1 , ! Lambda. fld_record_extension_set lbl)
913
913
in
914
914
Lprim (access, [ transl_exp arg; transl_exp newval ], e.exp_loc)
915
915
| Texp_array expr_list ->
@@ -1169,11 +1169,11 @@ and transl_record loc env fields repres opt_init_expr =
1169
1169
| Record_regular | Record_optional_labels _ ->
1170
1170
Pfield (i, ! Lambda. fld_record lbl)
1171
1171
| Record_inlined _ ->
1172
- Pfield (i, Fld_record_inline { name = lbl.lbl_name } )
1172
+ Pfield (i, ! Lambda. fld_record_inline lbl )
1173
1173
| Record_unboxed _ -> assert false
1174
1174
| Record_extension ->
1175
1175
Pfield
1176
- (i + 1 , Fld_record_extension { name = lbl.lbl_name } )
1176
+ (i + 1 , ! Lambda. fld_record_extension lbl )
1177
1177
in
1178
1178
Lprim (access, [ Lvar init_id ], loc)
1179
1179
| Overridden (_lid , expr ) -> transl_exp expr)
@@ -1259,11 +1259,11 @@ and transl_record loc env fields repres opt_init_expr =
1259
1259
| Record_regular | Record_optional_labels _ ->
1260
1260
Psetfield (lbl.lbl_pos, ! Lambda. fld_record_set lbl)
1261
1261
| Record_inlined _ ->
1262
- Psetfield (lbl.lbl_pos, Fld_record_inline_set lbl.lbl_name )
1262
+ Psetfield (lbl.lbl_pos, ! Lambda. fld_record_inline_set lbl)
1263
1263
| Record_unboxed _ -> assert false
1264
1264
| Record_extension ->
1265
1265
Psetfield
1266
- (lbl.lbl_pos + 1 , Fld_record_extension_set lbl.lbl_name )
1266
+ (lbl.lbl_pos + 1 , ! Lambda. fld_record_extension_set lbl)
1267
1267
in
1268
1268
Lsequence
1269
1269
(Lprim (upd, [ Lvar copy_id; transl_exp expr ], loc), cont)
0 commit comments