Call insert_recursive for union layouts

This commit is contained in:
Ayaz Hafiz 2023-01-23 15:40:40 -06:00
parent 59144f6e29
commit 37d9307fbf
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 14 additions and 10 deletions

View file

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