glslang-zig/glslang
Ryan Harrison 6d35ae89c0 Return nullptr after assert to avoid uninitialized variables
In the current version of the code on non-debug builds these cases
will fallthrough, since assert is a no-op, and eventually make a call
passing in |op| which hasn't been initialized. clang is currently
throwing a warning about this behaviour when integrating downstream.

This patch changes the behaviour, so that in any branch that has an
assert now has a return nullptr, to indicate failure after it and
avoid the uninitialized variable usage.
2019-08-28 11:36:27 -04:00
..
GenericCodeGen Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
Include GL_NV_integer_cooperative_matrix support 2019-08-22 20:37:59 -05:00
MachineIndependent Return nullptr after assert to avoid uninitialized variables 2019-08-28 11:36:27 -04:00
OSDependent Port Unix/ossource.cpp to Fuchsia 2019-01-30 15:15:11 -05:00
Public ESSL/SPV: Fix #1856: Allow ESSL shaders to compile to OpenGL SPIR-V. 2019-08-28 02:51:38 -06:00
CMakeLists.txt Web: Prune grammar and lexor down to needed subset. 2019-08-20 23:21:55 -06:00
glslang.js.cpp convert_glsl_to_spirv: fail early, reduce copies, remove input buffer allocation 2019-08-20 13:29:14 -07:00
glslang.pre.js convert_glsl_to_spirv: fail early, reduce copies, remove input buffer allocation 2019-08-20 13:29:14 -07:00
updateGrammar Web: Prune grammar and lexor down to needed subset. 2019-08-20 23:21:55 -06:00