Skip to content

Commit

Permalink
Fixes #493
Browse files Browse the repository at this point in the history
  • Loading branch information
msprotz committed Oct 22, 2024
1 parent eb07ac3 commit e9e3440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/UseAnalysis.ml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ let use_mark_to_remove_or_ignore final = object (self)
(* Definitely unused, except we can't generate let _ = ignore (bufcreate
...) -- this is a bad idea, as it'll force the hoisting phase to hoist
the bufcreate back into a let-binding, which will then be named "buf". *)
else if not (is_bufcreate e1) then
else if not (is_bufcreate e1) && Helpers.is_value e1 then
ELet ({ node = { b.node with meta = Some MetaSequence }; typ = TUnit; meta = []},
push_ignore e1,
e2)
Expand Down

0 comments on commit e9e3440

Please sign in to comment.