mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
parent
3e61b6d165
commit
1ecb795b96
1 changed files with 1 additions and 10 deletions
|
@ -2221,20 +2221,11 @@ fn list_append<'a, 'ctx, 'env>(
|
|||
"add_list_lengths",
|
||||
);
|
||||
|
||||
let elem_bytes = env
|
||||
.ptr_int()
|
||||
.const_int(elem_layout.stack_size(env.ptr_bytes) as u64, false);
|
||||
let combined_bytes = builder.build_int_mul(
|
||||
combined_list_len,
|
||||
elem_bytes,
|
||||
"add_list_lengths",
|
||||
);
|
||||
|
||||
let combined_list_ptr = env
|
||||
.builder
|
||||
.build_array_malloc(
|
||||
elem_type,
|
||||
combined_bytes,
|
||||
combined_list_len,
|
||||
"create_combined_list_ptr",
|
||||
)
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue