mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
using DecRef again
This commit is contained in:
parent
9e74a2cc8c
commit
e9c77a1d30
1 changed files with 2 additions and 2 deletions
|
@ -397,11 +397,11 @@ fn insert_reset_reuse_operations_stmt<'a, 'i>(
|
|||
}
|
||||
Stmt::Refcounting(rc, continuation) => {
|
||||
let reuse_pair = match rc {
|
||||
ModifyRc::Inc(_, _) | ModifyRc::DecRef(_) => {
|
||||
ModifyRc::Inc(_, _) => {
|
||||
// We don't need to do anything for an inc.
|
||||
None
|
||||
}
|
||||
ModifyRc::Dec(symbol) => {
|
||||
ModifyRc::Dec(symbol) | ModifyRc::DecRef(symbol) => {
|
||||
// Get the layout of the symbol from where it is defined.
|
||||
let layout_option = environment.get_symbol_layout(*symbol);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue