Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5e14e8e40aba98e447e44125f45a2e716560ebfc
https://github.com/WebKit/WebKit/commit/5e14e8e40aba98e447e44125f45a2e716560ebfc
Author: Tadeu Zagallo <[email protected]>
Date: 2024-02-15 (Thu, 15 Feb 2024)
Changed paths:
M Source/WebGPU/WGSL/TypeCheck.cpp
M Source/WebGPU/WGSL/TypeStore.cpp
M Source/WebGPU/WGSL/TypeStore.h
M Source/WebGPU/WGSL/Types.h
Log Message:
-----------
[WGSL] Validate results annotated with must_use are not discarded
https://bugs.webkit.org/show_bug.cgi?id=269370
rdar://122951915
Reviewed by Mike Wyrzykowski.
Check that functions/builtins annotated with must_use are not called from call
statements.
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
(WGSL::TypeChecker::chooseOverload):
* Source/WebGPU/WGSL/TypeStore.cpp:
(WGSL::TypeStore::functionType):
* Source/WebGPU/WGSL/TypeStore.h:
* Source/WebGPU/WGSL/Types.h:
Canonical link: https://commits.webkit.org/274717@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes