[webkit-changes] [WebKit/WebKit] 2e7ff8: [WGSL] Cannot initialize variable with void expres...
Tadeu Zagallo
noreply at github.com
Tue Jan 30 10:16:01 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2e7ff8a88a60f21b566ee8a7a94017be67815cfe
https://github.com/WebKit/WebKit/commit/2e7ff8a88a60f21b566ee8a7a94017be67815cfe
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2024-01-30 (Tue, 30 Jan 2024)
Changed paths:
M Source/WebGPU/WGSL/TypeCheck.cpp
M Source/WebGPU/WGSL/tests/invalid/function-call.wgsl
Log Message:
-----------
[WGSL] Cannot initialize variable with void expression
https://bugs.webkit.org/show_bug.cgi?id=268384
rdar://121528555
Reviewed by Mike Wyrzykowski.
Validate that the variable initializer isn't of void type. Otherwise, we will
try to materialize the void type, which will result in a nullptr Type*.
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visitVariable):
(WGSL::TypeChecker::introduceType):
(WGSL::TypeChecker::introduceValue):
* Source/WebGPU/WGSL/tests/invalid/function-call.wgsl:
Canonical link: https://commits.webkit.org/273765@main
More information about the webkit-changes
mailing list