nir/glsl_to_nir: quell some uninit_member coverity errors
authorRob Clark <robclark@freedesktop.org>
Wed, 18 May 2016 14:58:29 +0000 (10:58 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 20 May 2016 15:13:50 +0000 (11:13 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Acked-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/glsl_to_nir.cpp

index b25f06588988a288c318b87401eeb3d852b555c9..00e3fd5b71e97c34367e6c0b5ede4217e2ddf086 100644 (file)
@@ -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()