mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
switch over to alloca expr
This commit is contained in:
parent
cdd2aab217
commit
44d03eebfa
8 changed files with 9 additions and 67 deletions
|
@ -1138,8 +1138,10 @@ fn insert_refcount_operations_binding<'a>(
|
|||
Expr::Reset { .. } | Expr::ResetRef { .. } => {
|
||||
unreachable!("Reset(ref) should not exist at this point")
|
||||
}
|
||||
Expr::Alloca { .. } => {
|
||||
unreachable!("Alloca should not exist at this point")
|
||||
Expr::Alloca { initializer, .. } => {
|
||||
let new_let = new_let!(stmt);
|
||||
|
||||
inc_owned!(initializer.as_ref().copied().into_iter(), new_let)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1367,7 +1369,6 @@ fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[Ownership] {
|
|||
PtrStore => arena.alloc_slice_copy(&[owned, owned]),
|
||||
PtrLoad => arena.alloc_slice_copy(&[owned]),
|
||||
PtrCast => arena.alloc_slice_copy(&[owned]),
|
||||
Alloca => arena.alloc_slice_copy(&[owned]),
|
||||
|
||||
SetJmp | LongJmp | SetLongJmpBuffer => {
|
||||
unreachable!("only inserted in dev backend codegen")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue