mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Fix list refcount dec
This commit is contained in:
parent
51e1cd61dd
commit
9e9552186e
1 changed files with 1 additions and 2 deletions
|
@ -138,9 +138,8 @@ fn decrement_refcount_builtin<'a, 'ctx, 'env>(
|
||||||
}
|
}
|
||||||
|
|
||||||
if let MemoryMode::Refcounted = memory_mode {
|
if let MemoryMode::Refcounted = memory_mode {
|
||||||
build_inc_list(env, layout_ids, layout, wrapper_struct);
|
build_dec_list(env, layout_ids, layout, wrapper_struct);
|
||||||
}
|
}
|
||||||
build_dec_list(env, layout_ids, layout, wrapper_struct);
|
|
||||||
}
|
}
|
||||||
Set(element_layout) => {
|
Set(element_layout) => {
|
||||||
if element_layout.contains_refcounted() {
|
if element_layout.contains_refcounted() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue