Skip to content

Commit f02f9cb

Browse files
committed
Correct the way we get typarams when dropping an obj type in drop_ty by using get_tydesc_params.
1 parent 25a38ee commit f02f9cb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/boot/me/trans.ml

+3-5
Original file line numberDiff line numberDiff line change
@@ -2475,9 +2475,7 @@ let trans_visitor
24752475
let obj = deref binding in
24762476
let tydesc = get_element_ptr obj 1 in
24772477
let body = get_element_ptr obj 2 in
2478-
let ty_params =
2479-
get_element_ptr (deref tydesc) Abi.tydesc_field_first_param
2480-
in
2478+
let ty_params = get_tydesc_params ty_params tydesc in
24812479
let dtor =
24822480
get_element_ptr (deref tydesc) Abi.tydesc_field_obj_drop_glue
24832481
in
@@ -3670,9 +3668,9 @@ let trans_visitor
36703668
end
36713669
call.call_callee_ty_params;
36723670

3673-
trans_arg1 callee_task_cell;
3671+
trans_arg1 callee_task_cell;
36743672

3675-
trans_arg0 callee_output_cell initializing_arg0 call
3673+
trans_arg0 callee_output_cell initializing_arg0 call
36763674

36773675

36783676

0 commit comments

Comments
 (0)