forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Pattern Matching] Fix bug causing incorrect diagnostic
Incorrect diagnostic can be emitted when using statement expressions as a pattern substatement in an inspect with a trailing `void` return type. Add a specific check for the void return type. All other cases are handled when we check for convertibility later in semantic analysis. fixes llvm#19
- Loading branch information
1 parent
d50d93e
commit 611bd6e
Showing
2 changed files
with
12 additions
and
3 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