mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Merge pull request #2071 from rtfeldman/refcount-mono-ir
Start generating refcounting code as mono IR
This commit is contained in:
commit
a3827d6636
21 changed files with 726 additions and 209 deletions
|
@ -1008,6 +1008,10 @@ pub fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[bool] {
|
|||
SetFromList => arena.alloc_slice_copy(&[owned]),
|
||||
|
||||
ExpectTrue => arena.alloc_slice_copy(&[irrelevant]),
|
||||
|
||||
RefCountGetPtr | RefCountInc | RefCountDec => {
|
||||
unreachable!("Refcounting lowlevel calls are inserted *after* borrow checking");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue