[webkit-changes] [WebKit/WebKit] 91061b: [WGSL] Global variable rewriter should not use ran...

Tadeu Zagallo noreply at github.com
Fri Jan 19 10:12:48 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 91061b48751d475257c31fd551d9a2556dbcccf2
      https://github.com/WebKit/WebKit/commit/91061b48751d475257c31fd551d9a2556dbcccf2
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2024-01-19 (Fri, 19 Jan 2024)

  Changed paths:
    M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp

  Log Message:
  -----------
  [WGSL] Global variable rewriter should not use range-based for loop
https://bugs.webkit.org/show_bug.cgi?id=267720
rdar://121208769

Reviewed by Mike Wyrzykowski.

New structs might be created and inserted into the vector while we're iterating it,
which invalidates the iterator.

* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::collectGlobals):

Canonical link: https://commits.webkit.org/273224@main




More information about the webkit-changes mailing list