diff options
author | Rob Clark <[email protected]> | 2016-05-18 10:58:29 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-05-20 11:13:50 -0400 |
commit | bb993da7959da07cbbbd0f8d41e07652263260e6 (patch) | |
tree | b68cb7f5b7e2d60c5d9353adcb2f31b941e9bc8b /src/compiler/nir | |
parent | 3a1bbd6a0a85f866e4325eeb5e18694c51d3d36b (diff) |
nir/glsl_to_nir: quell some uninit_member coverity errors
Signed-off-by: Rob Clark <[email protected]>
Acked-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r-- | src/compiler/nir/glsl_to_nir.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/nir/glsl_to_nir.cpp b/src/compiler/nir/glsl_to_nir.cpp index b25f0658898..00e3fd5b71e 100644 --- a/src/compiler/nir/glsl_to_nir.cpp +++ b/src/compiler/nir/glsl_to_nir.cpp @@ -213,6 +213,12 @@ nir_visitor::nir_visitor(nir_shader *shader) _mesa_key_pointer_equal); this->overload_table = _mesa_hash_table_create(NULL, _mesa_hash_pointer, _mesa_key_pointer_equal); + this->result = NULL; + this->impl = NULL; + this->var = NULL; + this->deref_head = NULL; + this->deref_tail = NULL; + memset(&this->b, 0, sizeof(this->b)); } nir_visitor::~nir_visitor() |