dawn-cmake/generator/templates/dawn_native
Corentin Wallez c7d78088cd Make codegen not cast between fnptrs.
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>
2018-11-20 09:33:35 +00:00
..
ProcTable.cpp Make codegen not cast between fnptrs. 2018-11-20 09:33:35 +00:00
ValidationUtils.cpp Make Dawn error macro more explicit and have an "error type" 2018-09-11 07:55:27 -04:00
ValidationUtils.h dawn_native: Fixup namespace from backend:: to dawn_native:: 2018-07-25 11:27:55 +02:00
api_structs.cpp Make dawn_native use its own header for Dawn datatypes 2018-07-27 12:56:26 +02:00
api_structs.h Generate a single ProcTable instead of one per backend. 2018-08-02 13:39:07 +02:00