Skip to content

Commit

Permalink
Revert "Unconditionally simplify trivial let"
Browse files Browse the repository at this point in the history
This reverts commit e769065.
  • Loading branch information
msprotz committed May 11, 2022
1 parent 03db0ab commit bb5a50c
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; _ }) ->
| ELet (_, e1, { node = EBound 0; _ }) when Helpers.is_readonly_c_expression e1 ->
e1.node
| _ ->
e
Expand Down

0 comments on commit bb5a50c

Please sign in to comment.