Skip to content

Commit 25a38ee

Browse files
committed
Modify copy_fn_args not to bother with dynamic GEP to get the indirect args cell in a calltup. It's now possible to obtain it with just regular GEP.
1 parent 373f904 commit 25a38ee

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: src/boot/me/trans.ml

+3-4
Original file line numberDiff line numberDiff line change
@@ -3597,6 +3597,9 @@ let trans_visitor
35973597
let callee_task_cell =
35983598
get_element_ptr all_callee_args_cell Abi.calltup_elt_task_ptr
35993599
in
3600+
let callee_indirect_args =
3601+
get_element_ptr all_callee_args_cell Abi.calltup_elt_indirect_args
3602+
in
36003603
let callee_ty_params =
36013604
get_element_ptr all_callee_args_cell Abi.calltup_elt_ty_params
36023605
in
@@ -3608,10 +3611,6 @@ let trans_visitor
36083611
get_element_ptr_dyn_in_current_frame
36093612
all_callee_args_cell Abi.calltup_elt_iterator_args
36103613
in
3611-
let callee_indirect_args =
3612-
get_element_ptr_dyn_in_current_frame
3613-
all_callee_args_cell Abi.calltup_elt_indirect_args
3614-
in
36153614

36163615
let n_args = Array.length call.call_args in
36173616
let n_iterators = Array.length call.call_iterator_args in

0 commit comments

Comments
 (0)