[webkit-changes] [WebKit/WebKit] 1e3175: [WGSL] Array constructor needs to unwrap references
Tadeu Zagallo
noreply at github.com
Tue Jan 30 10:24:02 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1e31759a1fb0dfd8bd1ee4cc5b0daf5116713ca7
https://github.com/WebKit/WebKit/commit/1e31759a1fb0dfd8bd1ee4cc5b0daf5116713ca7
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/valid/overload.wgsl
Log Message:
-----------
[WGSL] Array constructor needs to unwrap references
https://bugs.webkit.org/show_bug.cgi?id=268388
rdar://121527103
Reviewed by Mike Wyrzykowski.
It's not valid to have an array of references, so we need to unwrap the
reference first before inferring the type of the array elements.
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/tests/valid/overload.wgsl:
Canonical link: https://commits.webkit.org/273767@main
More information about the webkit-changes
mailing list