mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 12:21:35 +00:00
When generating the proc tables for dawn_native and dawn_wire (for the client), we were casting between function pointers with the C types and function pointers with the internal types. This is UB and was caught by UBSan. Replace casts between function pointers by casts between types inside the functions themselves. BUG=chromium:906349 Change-Id: Icd8f6eedfa729e767ae3bacb2d6951f5ad5c4c82 Reviewed-on: https://dawn-review.googlesource.com/c/2400 Reviewed-by: Stephen White <senorblanco@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>