Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor how guard patterns are compiled
Instead of allocating guard blocks ahead of time and reusing those, the pattern match compiler is given the HIR expressions of guards directly. This simplifies the compiler, and ensures that when OR patterns are guarded, the guards for each branch are compiled separately. This fixes #599. Changelog: fixed
- Loading branch information
1 parent
ac24bcc
commit 895826b
Showing
2 changed files
with
80 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters