remove inc functions from list.map*, the closure will inc in necessary

This commit is contained in:
Brendan Hansknecht 2024-07-11 17:33:30 -07:00
parent 6712824891
commit 94cb4fb8ff
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
4 changed files with 0 additions and 61 deletions

View file

@ -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);
}