-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WGSL] Validate functions missing a return statement
https://bugs.webkit.org/show_bug.cgi?id=271482 rdar://124143123 Reviewed by Mike Wyrzykowski. Implement the behavior analysis from the spec[1] and check if functions with a return type are missing a return statement. [1]: https://www.w3.org/TR/WGSL/#behaviors * Source/WebGPU/WGSL/TypeCheck.cpp: (WGSL::TypeChecker::visit): (WGSL::TypeChecker::analyze): (WGSL::TypeChecker::analyzeStatements): * Source/WebGPU/WGSL/tests/invalid/function-call.wgsl: Canonical link: https://commits.webkit.org/276630@main
- Loading branch information
1 parent
7cb7a6e
commit 2fa5e50
Showing
2 changed files
with
128 additions
and
1 deletion.
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