minor arg correction

This commit is contained in:
Brendan Hansknecht 2024-07-10 18:56:53 -07:00
parent 7529883451
commit 516afaff41
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -562,7 +562,7 @@ fn rc_return_stmt<'a>(
}
fn refcount_args<'a>(root: &CodeGenHelp<'a>, ctx: &Context<'a>, structure: Symbol) -> &'a [Symbol] {
if ctx.op == HelperOp::IncN {
if matches!(ctx.op, HelperOp::IncN | HelperOp::IndirectIncN) {
// second argument is always `amount`, passed down through the call stack
root.arena.alloc([structure, Symbol::ARG_2])
} else {