mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Updated refcount logic
This commit is contained in:
parent
0fe94cbd90
commit
74f2b0afda
4 changed files with 29 additions and 71 deletions
|
@ -326,9 +326,7 @@ fn specialize_drops_stmt<'a, 'i>(
|
|||
symbol,
|
||||
continuation,
|
||||
),
|
||||
Layout::LambdaSet(_) => {
|
||||
unreachable!("lambda sets should not be a runtime layout")
|
||||
}
|
||||
// TODO: lambda sets should not be reachable, yet they are.
|
||||
// TODO: Implement this with uniqueness checks.
|
||||
_ => {
|
||||
let new_continuation = specialize_drops_stmt(
|
||||
|
@ -905,8 +903,8 @@ where
|
|||
let join = arena.alloc(Stmt::Join {
|
||||
id: join_id,
|
||||
parameters: arena.alloc([]),
|
||||
body: switch,
|
||||
remainder: continutation,
|
||||
body: continutation,
|
||||
remainder: switch,
|
||||
});
|
||||
|
||||
join
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue