mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
add lowlevel to inc/dec a data pointer
This commit is contained in:
parent
a61e7a696d
commit
cf54304cf4
13 changed files with 90 additions and 28 deletions
|
@ -758,7 +758,7 @@ fn modify_refcount<'a>(
|
|||
HelperOp::Inc => {
|
||||
let zig_call_expr = Expr::Call(Call {
|
||||
call_type: CallType::LowLevel {
|
||||
op: LowLevel::RefCountInc,
|
||||
op: LowLevel::RefCountIncRcPtr,
|
||||
update_mode: UpdateModeId::BACKEND_DUMMY,
|
||||
},
|
||||
arguments: root.arena.alloc([rc_ptr, Symbol::ARG_2]),
|
||||
|
@ -774,7 +774,7 @@ fn modify_refcount<'a>(
|
|||
|
||||
let zig_call_expr = Expr::Call(Call {
|
||||
call_type: CallType::LowLevel {
|
||||
op: LowLevel::RefCountDec,
|
||||
op: LowLevel::RefCountDecRcPtr,
|
||||
update_mode: UpdateModeId::BACKEND_DUMMY,
|
||||
},
|
||||
arguments: root.arena.alloc([rc_ptr, alignment_sym]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue