Re: [Mesa-dev] [PATCH] glsl: glsl to nir fix uninit static class member.
Reviewed-by: Alejandro PiƱeiro On 8/2/19 6:24, Dave Airlie wrote: From: Dave Airlie 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(>b, 0, sizeof(this->b)); } ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [PATCH] glsl: glsl to nir fix uninit static class member.
From: Dave Airlie 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(>b, 0, sizeof(this->b)); } -- 2.20.1 ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev