glsl: glsl to nir fix uninit class member.
authorDave Airlie <airlied@redhat.com>
Fri, 8 Feb 2019 05:23:46 +0000 (15:23 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 10 Feb 2019 22:55:07 +0000 (08:55 +1000)
The constructor should init this to NULL

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/glsl_to_nir.cpp

index 09599e4cee711b556a5cc8a129346029362c3f3a..d62de862fac62043c6877141413ce607e380baa4 100644 (file)
@@ -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));
 }