mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
correct low level calling for list incref/decref
This commit is contained in:
parent
23154c41aa
commit
d0b564360b
1 changed files with 0 additions and 4 deletions
|
@ -953,8 +953,6 @@ fn refcount_list<'a>(
|
|||
let list = Symbol::ARG_1;
|
||||
let rc_list_expr = match ctx.op {
|
||||
HelperOp::IncN | HelperOp::Inc => {
|
||||
// TODO: refcount_args is totally wrong here.
|
||||
// Should be list, amount, elements_refcounted
|
||||
let rc_list_args = refcount_args(root, ctx, list);
|
||||
Expr::Call(Call {
|
||||
call_type: CallType::LowLevel {
|
||||
|
@ -965,8 +963,6 @@ fn refcount_list<'a>(
|
|||
})
|
||||
}
|
||||
HelperOp::DecRef(_) | HelperOp::Dec => {
|
||||
// TODO: refcount_args is totally wrong here.
|
||||
// Should be list, alignment, element_width, elements_refcounted, element_def_fn
|
||||
let rc_list_args = refcount_args(root, ctx, list);
|
||||
Expr::Call(Call {
|
||||
call_type: CallType::LowLevel {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue