Skip to content

Commit

Permalink
Unconditionally simplify trivial let
Browse files Browse the repository at this point in the history
  • Loading branch information
857b committed May 4, 2022
1 parent fc64e65 commit e769065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Simplify.ml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let count_and_remove_locals = object (self)

method private remove_trivial_let e =
match e with
| ELet (_, e1, { node = EBound 0; _ }) when Helpers.is_readonly_c_expression e1 ->
| ELet (_, e1, { node = EBound 0; _ }) ->
e1.node
| _ ->
e
Expand Down

0 comments on commit e769065

Please sign in to comment.