Skip to content

Commit

Permalink
Merge pull request #264 from 857b/trivial-let-elim
Browse files Browse the repository at this point in the history
Simplify all trivial let-bindings
  • Loading branch information
msprotz authored May 5, 2022
2 parents 1a496be + e769065 commit 8f67a79
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 8f67a79

Please sign in to comment.