mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
don't decrement when reusing
This commit is contained in:
parent
09f01ba193
commit
5cfc4b01c9
1 changed files with 3 additions and 1 deletions
|
@ -1552,7 +1552,9 @@ fn build_rec_union_recursive_decrement<'a, 'ctx, 'env>(
|
|||
env.builder.position_at_end(merge_block);
|
||||
|
||||
// increment/decrement the cons-cell itself
|
||||
if let DecOrReuse::Dec = decrement_or_reuse {
|
||||
refcount_ptr.modify(call_mode, &Layout::Union(union_layout), env);
|
||||
}
|
||||
|
||||
// this function returns void
|
||||
builder.build_return(None);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue