drop the tag!

This commit is contained in:
Folkert 2021-01-17 02:26:04 +01:00
parent 897bc41b6b
commit c1265574b3
6 changed files with 48 additions and 34 deletions

View file

@ -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,
);