mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
free or reuse unconditionally when value is unique
This commit is contained in:
parent
e3ab023f62
commit
fc3004da58
21 changed files with 381 additions and 69 deletions
|
@ -510,6 +510,12 @@ fn apply_refcount_operation(
|
|||
builder.add_recursive_touch(block, argument)?;
|
||||
}
|
||||
ModifyRc::DecRef(symbol) => {
|
||||
// this is almost certainly suboptimal, but not incorrect
|
||||
let argument = env.symbols[symbol];
|
||||
builder.add_recursive_touch(block, argument)?;
|
||||
}
|
||||
ModifyRc::Free(symbol) => {
|
||||
// this is almost certainly suboptimal, but not incorrect
|
||||
let argument = env.symbols[symbol];
|
||||
builder.add_recursive_touch(block, argument)?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue