correct low level calling for list incref/decref

This commit is contained in:
Brendan Hansknecht 2024-07-07 16:31:24 -07:00
parent 23154c41aa
commit d0b564360b
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

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