[webkit-changes] [WebKit/WebKit] 5e14e8: [WGSL] Validate results annotated with must_use ar...

Tadeu Zagallo noreply at github.com
Thu Feb 15 04:44:48 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5e14e8e40aba98e447e44125f45a2e716560ebfc
      https://github.com/WebKit/WebKit/commit/5e14e8e40aba98e447e44125f45a2e716560ebfc
  Author: Tadeu Zagallo <tzagallo at apple.com>
  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




More information about the webkit-changes mailing list