-
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 newline separators between invalid
end
instructions (#1640)
This commit fixes a bug from a prior refactoring where when there were too many `end` instructions in a function, which is invalid, then printing would confusingly "fuse" instructions together by not printing a separator.
- Loading branch information
1 parent
3f4960a
commit 771b2bd
Showing
4 changed files
with
18 additions
and
2 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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
(module | ||
(type (;0;) (func)) | ||
(func (;0;) (type 0)end) | ||
(func (;0;) (type 0) | ||
end | ||
) | ||
) |
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,5 @@ | ||
;; RUN: print % | ||
|
||
(module | ||
(func end i32.const 0 drop end) | ||
) |
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,9 @@ | ||
(module | ||
(type (;0;) (func)) | ||
(func (;0;) (type 0) | ||
end | ||
i32.const 0 | ||
drop | ||
end | ||
) | ||
) |