[Mesa-dev] [PATCH] glsl: glsl to nir fix uninit static class member.

Dave Airlie airlied at gmail.com
Fri Feb 8 05:24:11 UTC 2019


From: Dave Airlie <airlied at redhat.com>

The constructor should init this to NULL
---
 src/compiler/glsl/glsl_to_nir.cpp | 1 +
 1 file changed, 1 insertion(+)

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));
 }
 
-- 
2.20.1



More information about the mesa-dev mailing list