-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parsing of
select
-with-results (#872)
Previously multiple `(result)` blocks would erroneously discard the previously parsed result blocks, so this commit fixes the textual parsing of this instruction to collect all of the `(result)` blocks instead of only the final one. Closes #870
- Loading branch information
1 parent
edaf07e
commit d79620f
Showing
3 changed files
with
20 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(func (result i32) unreachable select (result i32) (result)) | ||
(func (result i32) unreachable select (result i32) (result) select) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(module | ||
(type (;0;) (func (result i32))) | ||
(func (;0;) (type 0) (result i32) | ||
unreachable | ||
select (result i32) | ||
) | ||
(func (;1;) (type 0) (result i32) | ||
unreachable | ||
select (result i32) | ||
select | ||
) | ||
) |