mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
drop the tag!
This commit is contained in:
parent
897bc41b6b
commit
c1265574b3
6 changed files with 48 additions and 34 deletions
|
@ -359,10 +359,12 @@ pub fn decrement_refcount_layout<'a, 'ctx, 'env>(
|
|||
NullableUnwrapped { other_fields, .. } => {
|
||||
debug_assert!(value.is_pointer_value());
|
||||
|
||||
let other_fields = &other_fields[1..];
|
||||
|
||||
build_dec_rec_union(
|
||||
env,
|
||||
layout_ids,
|
||||
&*env.arena.alloc([*other_fields]),
|
||||
&*env.arena.alloc([other_fields]),
|
||||
value.into_pointer_value(),
|
||||
true,
|
||||
);
|
||||
|
@ -468,10 +470,12 @@ pub fn increment_refcount_layout<'a, 'ctx, 'env>(
|
|||
NullableUnwrapped { other_fields, .. } => {
|
||||
debug_assert!(value.is_pointer_value());
|
||||
|
||||
let other_fields = &other_fields[1..];
|
||||
|
||||
build_inc_rec_union(
|
||||
env,
|
||||
layout_ids,
|
||||
&*env.arena.alloc([*other_fields]),
|
||||
&*env.arena.alloc([other_fields]),
|
||||
value.into_pointer_value(),
|
||||
true,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue