mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
For DecRef, remove assumption that the refcounted symbol is ARG_1
This commit is contained in:
parent
176bb6f6aa
commit
98ab97083a
2 changed files with 13 additions and 13 deletions
|
@ -250,7 +250,7 @@ impl<'a> CodeGenHelp<'a> {
|
|||
let (ret_layout, body) = match ctx.op {
|
||||
Inc | Dec | DecRef(_) => (
|
||||
LAYOUT_UNIT,
|
||||
refcount::refcount_generic(self, ident_ids, ctx, layout),
|
||||
refcount::refcount_generic(self, ident_ids, ctx, layout, Symbol::ARG_1),
|
||||
),
|
||||
Eq => (
|
||||
LAYOUT_BOOL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue