Skip to content

Commit 1e96ca7

Browse files
committed
fixup! Rewrite inline pass
1 parent daf7b08 commit 1e96ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/lib/inline.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ let remove_dead_closures_from_block ~live_vars p pc block =
441441
match i with
442442
| Let (f, Closure _) ->
443443
let f = Var.idx f in
444-
f <= Array.length live_vars && live_vars.(f) = 0
444+
f < Array.length live_vars && live_vars.(f) = 0
445445
| _ -> false
446446
in
447447
if List.exists ~f:is_dead_closure block.body

0 commit comments

Comments
 (0)