)]}'
{
  "commit": "d9aed31faf030b04fd1a91251442165ca46d9fc7",
  "tree": "a852e3849ba396ac5ed28c48c9e1f2f4d10c0a2a",
  "parents": [
    "198baf5044aebdad24c8c30a379ce5c3660a6b06"
  ],
  "author": {
    "name": "Gregg Tavares",
    "email": "gman@chromium.org",
    "time": "Tue Mar 17 11:53:46 2026 -0700"
  },
  "committer": {
    "name": "Dawn LUCI CQ",
    "email": "dawn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Tue Mar 17 11:53:46 2026 -0700"
  },
  "message": "Refactor DeviceBase::APIPopErrorScope to avoid warning\n\nIn dawn-node, on linux, the compiler wrongly flags this piece\nof code with the following warning\n\n```\n[1/3] Building CXX object src/dawn/native/CMakeFiles/dawn_native_objects.dir/Device.cpp.o\nIn file included from /usr/local/google/home/gman/src/node-webgpu/third_party/dawn/src/dawn/native/Device.h:31,\n                 from /usr/local/google/home/gman/src/node-webgpu/third_party/dawn/src/dawn/native/Device.cpp:28:\nIn member function ‘_Tp std::atomic\u003c_Tp\u003e::load(std::memory_order) const [with _Tp \u003d dawn::native::AsyncTaskState]’,\n    inlined from ‘std::atomic\u003c_Tp\u003e::operator _Tp() const [with _Tp \u003d dawn::native::AsyncTaskState]’ at /usr/include/c++/15/atomic:253:20,\n    inlined from ‘dawn::native::AsyncTaskState dawn::native::AsyncTask::GetState() const’ at /usr/local/google/home/gman/src/node-webgpu/third_party/dawn/src/dawn/native/AsyncTask.h:71:46,\n    inlined from ‘virtual void dawn::native::DeviceBase::APIPopErrorScope(const WGPUPopErrorScopeCallbackInfo\u0026)::PopErrorScopeEvent::Complete(dawn::EventCompletionType)’ at /usr/local/google/home/gman/src/node-webgpu/third_party/dawn/src/dawn/native/Device.cpp:947:44:\n/usr/include/c++/15/atomic:308:22: warning: ‘unsigned char __atomic_load_1(const volatile void*, int)’ writing 1 byte into a region of size 0 overflows the destination [-Wstringop-overflow\u003d]\n  308 |         __atomic_load(std::__addressof(_M_i), __ptr, int(__m));\n      |         ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nIn member function ‘virtual void dawn::native::DeviceBase::APIPopErrorScope(const WGPUPopErrorScopeCallbackInfo\u0026)::PopErrorScopeEvent::Complete(dawn::EventCompletionType)’:\ncc1plus: note: destination object is likely at address zero\n```\n\nThis refactor avoids the warning and is maybe a tiny bit more efficient.\n\nChange-Id: I46e6efae9fad1570a27ce24eb471a2db1d8d247d\nReviewed-on: https://dawn-review.googlesource.com/c/dawn/+/297497\nCommit-Queue: Gregg Tavares \u003cgman@chromium.org\u003e\nAuto-Submit: Gregg Tavares \u003cgman@chromium.org\u003e\nReviewed-by: Loko Kung \u003clokokung@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b0e91182e61932c8a0bb39a1ad38fe6b12583238",
      "old_mode": 33188,
      "old_path": "src/dawn/native/Device.cpp",
      "new_id": "6430b9d94f5cd20990ae6ac08be171c4ef35384e",
      "new_mode": 33188,
      "new_path": "src/dawn/native/Device.cpp"
    }
  ]
}
