This commit is contained in:
Folkert 2021-07-30 16:54:22 +02:00
parent 46beaf5855
commit e805e63db6
20 changed files with 31 additions and 31 deletions

View file

@ -35,9 +35,9 @@ pub fn make_tail_recursive<'a>(
stmt: Stmt<'a>,
args: &'a [(Layout<'a>, Symbol)],
) -> Stmt<'a> {
let alloced = arena.alloc(stmt);
match insert_jumps(arena, alloced, id, needle) {
None => alloced.clone(),
let allocated = arena.alloc(stmt);
match insert_jumps(arena, allocated, id, needle) {
None => allocated.clone(),
Some(new) => {
// jumps were inserted, we must now add a join point