Skip to content

Commit eea5150

Browse files
authored
flambda-backend: Fix incorrect sort in transl (#1547)
1 parent d2b44d8 commit eea5150

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lambda/translcore.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,9 +648,9 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
648648
event_before ~scopes ifso (transl_exp ~scopes sort ifso),
649649
lambda_unit,
650650
Lambda.layout_unit)
651-
| Texp_sequence(expr1, sort, expr2) ->
652-
sort_must_not_be_void expr1.exp_loc expr1.exp_type sort;
653-
Lsequence(transl_exp ~scopes sort expr1,
651+
| Texp_sequence(expr1, sort', expr2) ->
652+
sort_must_not_be_void expr1.exp_loc expr1.exp_type sort';
653+
Lsequence(transl_exp ~scopes sort' expr1,
654654
event_before ~scopes expr2 (transl_exp ~scopes sort expr2))
655655
| Texp_while {wh_body; wh_body_sort; wh_cond} ->
656656
sort_must_not_be_void wh_body.exp_loc wh_body.exp_type wh_body_sort;

0 commit comments

Comments
 (0)