mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
load_roc_value by layoutrepr
This commit is contained in:
parent
07f40baf62
commit
390e9f8648
9 changed files with 95 additions and 36 deletions
|
|
@ -364,7 +364,13 @@ fn build_clone<'a, 'ctx>(
|
|||
build_copy(env, ptr, cursors.offset, cursors.extra_offset.into());
|
||||
|
||||
let source = value.into_pointer_value();
|
||||
let value = load_roc_value(env, layout_interner, inner_layout, source, "inner");
|
||||
let value = load_roc_value(
|
||||
env,
|
||||
layout_interner,
|
||||
layout_interner.get_repr(inner_layout),
|
||||
source,
|
||||
"inner",
|
||||
);
|
||||
|
||||
let inner_width = env
|
||||
.ptr_int()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue