mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Call insert_recursive for union layouts
This commit is contained in:
parent
59144f6e29
commit
37d9307fbf
3 changed files with 14 additions and 10 deletions
|
@ -1851,7 +1851,7 @@ fn modify_refcount_nonrecursive_help<'a, 'ctx, 'env>(
|
|||
mode.to_call_mode(fn_val),
|
||||
when_recursive,
|
||||
recursive_ptr_field_value,
|
||||
Layout::RECURSIVE_PTR,
|
||||
*field_layout,
|
||||
)
|
||||
} else if layout_interner.contains_refcounted(*field_layout) {
|
||||
let field_ptr = env
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue