Skip to content

Commit 2141154

Browse files
committed
Change the body-fetching GEP in mark_ty to be dynamic. Our box may be parametric.
1 parent 2a2ec67 commit 2141154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/boot/me/trans.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2815,7 +2815,7 @@ let trans_visitor
28152815
(* Iterate over box parts marking outgoing links. *)
28162816
let (body_mem, _) =
28172817
need_mem_cell
2818-
(get_element_ptr (deref cell)
2818+
(get_element_ptr_dyn ty_params (deref cell)
28192819
Abi.box_gc_field_body)
28202820
in
28212821
let ty = maybe_iso curr_iso ty in

0 commit comments

Comments
 (0)