Change the body-fetching GEP in mark_ty to be dynamic. Our box may be parametric.

This commit is contained in:
Roy Frostig 2010-07-19 11:47:46 -07:00
parent 2a2ec67e6e
commit 2141154c85

View File

@ -2815,7 +2815,7 @@ let trans_visitor
(* Iterate over box parts marking outgoing links. *)
let (body_mem, _) =
need_mem_cell
(get_element_ptr (deref cell)
(get_element_ptr_dyn ty_params (deref cell)
Abi.box_gc_field_body)
in
let ty = maybe_iso curr_iso ty in