mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Lowlevels: replace RefCountGetPtr with the more general GetPtrAsInt.
This commit is contained in:
parent
a1d883600c
commit
e847c924dd
7 changed files with 104 additions and 44 deletions
|
@ -1007,8 +1007,8 @@ pub fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[bool] {
|
|||
|
||||
ExpectTrue => arena.alloc_slice_copy(&[irrelevant]),
|
||||
|
||||
RefCountGetPtr | RefCountInc | RefCountDec => {
|
||||
unreachable!("Refcounting lowlevel calls are inserted *after* borrow checking");
|
||||
PtrCast | RefCountInc | RefCountDec => {
|
||||
unreachable!("Only inserted *after* borrow checking: {:?}", op);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue