Skip to content

Commit 29f7ef3

Browse files
committed
fixup! Rewrite inline pass
1 parent d3b8e6f commit 29f7ef3

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
@@ -443,7 +443,7 @@ let remove_dead_closures_from_block ~live_vars p pc block =
443443
match i with
444444
| Let (f, Closure _) ->
445445
let f = Var.idx f in
446-
f <= Array.length live_vars && live_vars.(f) = 0
446+
f < Array.length live_vars && live_vars.(f) = 0
447447
| _ -> false
448448
in
449449
if List.exists ~f:is_dead_closure block.body

0 commit comments

Comments
 (0)