[Mesa-dev] [PATCH] glsl: glsl to nir fix uninit static class member.
apinheiro
apinheiro at igalia.com
Fri Feb 8 10:19:41 UTC 2019
Reviewed-by: Alejandro PiƱeiro <apinheiro at igalia.com>
On 8/2/19 6:24, Dave Airlie wrote:
> 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));
> }
>
More information about the mesa-dev
mailing list