Skip to content

Commit

Permalink
Fix buggy order in pattern matching
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Sep 6, 2023
1 parent 004aa40 commit 933a970
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions compiler/lib/effects.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1428,11 +1428,10 @@ let f (p, live_vars) =
debug_print "@[<v>After lambda lifting...@,";
Code.Print.program (fun _ _ -> "") p;
debug_print "@]");
p, lifter_functions, cps_needed)
else (
p, lifter_functions, cps_needed)
else
let p, cps_needed = rewrite_toplevel ~cps_needed p in
p, cps_needed, Var.Set.empty
)
p, Var.Set.empty, cps_needed
in
let p = split_blocks ~cps_needed ~lifter_functions p in
let p, cps_calls, single_version_closures =
Expand Down

0 comments on commit 933a970

Please sign in to comment.