Closed bmourad01 closed 3 years ago
Sorry for missing your PRs! Please, do not hesitate to poke me on Gitter if I am not reacting to the PR in the first day. I am having too many communications from Github so I miss them quite often.
The code looks good, but could you please reindent it. Simple make indent
will do the work.
And thanks for the fix!
The pass was incorrectly handling lexically-scoped variables introduced by "let" expressions.
For example, the following code:
Was transformed to:
Notice how the terms at
00005ebf
and so on contain lexically-scoped variables which are not bound to any expression. This commit fixes that behavior to the following:So, the pass seems better off discarding the "let" entirely.