mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Copy list values from the correct offset when reporting expects
Co-authored-by: Folkert de Vries <folkert@folkertdev.nl>
This commit is contained in:
parent
166be98ac8
commit
c4a3a8bd31
2 changed files with 49 additions and 2 deletions
|
@ -935,7 +935,8 @@ fn build_clone_builtin<'a, 'ctx, 'env>(
|
|||
|
||||
bd.build_int_add(offset, elements_width, "new_offset")
|
||||
} else {
|
||||
let elements_start_offset = offset;
|
||||
// We cloned the elements into the extra_offset address.
|
||||
let elements_start_offset = cursors.extra_offset.into();
|
||||
|
||||
let element_type = basic_type_from_layout(env, elem);
|
||||
let elements = bd.build_pointer_cast(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue