summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-02-08 15:23:46 +1000
committerDave Airlie <[email protected]>2019-02-11 08:55:07 +1000
commitd2e82c2682439691c1d7b34762d70e134dc8da8f (patch)
tree20aeeafd3ad5d54507e3f196ef831856b9367b96 /src/compiler/glsl
parent245879725655d47a2e4cbf3434a9842f917fc586 (diff)
glsl: glsl to nir fix uninit class member.
The constructor should init this to NULL Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r--src/compiler/glsl/glsl_to_nir.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp
index 09599e4cee7..d62de862fac 100644
--- a/src/compiler/glsl/glsl_to_nir.cpp
+++ b/src/compiler/glsl/glsl_to_nir.cpp
@@ -180,6 +180,7 @@ nir_visitor::nir_visitor(nir_shader *shader)
this->overload_table = _mesa_pointer_hash_table_create(NULL);
this->result = NULL;
this->impl = NULL;
+ this->deref = NULL;
memset(&this->b, 0, sizeof(this->b));
}