We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daf7b08 commit 1e96ca7Copy full SHA for 1e96ca7
compiler/lib/inline.ml
@@ -441,7 +441,7 @@ let remove_dead_closures_from_block ~live_vars p pc block =
441
match i with
442
| Let (f, Closure _) ->
443
let f = Var.idx f in
444
- f <= Array.length live_vars && live_vars.(f) = 0
+ f < Array.length live_vars && live_vars.(f) = 0
445
| _ -> false
446
in
447
if List.exists ~f:is_dead_closure block.body
0 commit comments