mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Store value by layoutrepr
This commit is contained in:
parent
bc41db2a34
commit
5979405b79
3 changed files with 62 additions and 14 deletions
|
@ -337,7 +337,13 @@ fn build_clone<'a, 'ctx>(
|
|||
.builder
|
||||
.build_pointer_cast(ptr, ptr_type, "cast_ptr_type");
|
||||
|
||||
store_roc_value(env, layout_interner, layout, ptr, value);
|
||||
store_roc_value(
|
||||
env,
|
||||
layout_interner,
|
||||
layout_interner.get_repr(layout),
|
||||
ptr,
|
||||
value,
|
||||
);
|
||||
|
||||
cursors.extra_offset
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue