mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
minor arg correction
This commit is contained in:
parent
7529883451
commit
516afaff41
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue