Updated refcount logic

This commit is contained in:
J.Teeuwissen 2023-04-26 17:39:46 +02:00
parent 0fe94cbd90
commit 74f2b0afda
No known key found for this signature in database
GPG key ID: DB5F7A1ED8D478AD
4 changed files with 29 additions and 71 deletions

View file

@ -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