For DecRef, remove assumption that the refcounted symbol is ARG_1

This commit is contained in:
Brian Carroll 2022-01-01 19:23:48 +00:00
parent 176bb6f6aa
commit 98ab97083a
2 changed files with 13 additions and 13 deletions

View file

@ -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,