Boxed skeleton

This commit is contained in:
Folkert 2021-07-12 17:01:53 +02:00
parent 7be0349eee
commit 09f01ba193
8 changed files with 31 additions and 1 deletions

View file

@ -246,7 +246,12 @@ fn insert_reset<'a>(
}
let reset_expr = Expr::Reset(x);
stmt = env.arena.alloc(Stmt::Let(w, reset_expr, layout, stmt));
const I64: Layout<'static> = Layout::Builtin(crate::layout::Builtin::Int64);
stmt = env
.arena
.alloc(Stmt::Let(w, reset_expr, Layout::Boxed(&I64), stmt));
for (symbol, expr, expr_layout) in stack.into_iter().rev() {
stmt = env