Store value by layoutrepr

This commit is contained in:
Ayaz Hafiz 2023-06-16 21:40:44 -05:00
parent bc41db2a34
commit 5979405b79
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 62 additions and 14 deletions

View file

@ -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 {