summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/glsl_to_nir.cpp6
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()