mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
remove inc functions from list.map*, the closure will inc in necessary
This commit is contained in:
parent
6712824891
commit
94cb4fb8ff
4 changed files with 0 additions and 61 deletions
|
@ -2958,12 +2958,6 @@ fn list_map_n<'a>(
|
|||
}
|
||||
cb.i32_const(elem_ret_size as i32);
|
||||
|
||||
// We need to be able to increment the refcount of elements loaded.
|
||||
for el in arg_elem_layouts.iter() {
|
||||
let ptr = build_refcount_element_fn(backend, *el, HelperOp::IndirectInc);
|
||||
backend.code_builder.i32_const(ptr);
|
||||
}
|
||||
|
||||
backend.code_builder.i32_const(elem_ret_refcounted as i32);
|
||||
backend.call_host_fn_after_loading_args(zig_fn_name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue