module thunk is function

This commit is contained in:
Folkert 2021-05-22 14:57:25 +02:00
parent 43c4f24515
commit 3b47fbc89a
3 changed files with 76 additions and 13 deletions

View file

@ -2048,8 +2048,6 @@ fn update<'a>(
&& state.dependencies.solved_all()
&& state.goal_phase == Phase::MakeSpecializations
{
Proc::insert_refcount_operations(arena, &mut state.procedures);
// display the mono IR of the module, for debug purposes
if roc_mono::ir::PRETTY_PRINT_IR_SYMBOLS {
let procs_string = state
@ -2062,6 +2060,7 @@ fn update<'a>(
println!("{}", result);
}
Proc::insert_refcount_operations(arena, &mut state.procedures);
Proc::optimize_refcount_operations(
arena,