glsl: glsl to nir fix uninit class member.

The constructor should init this to NULL

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
This commit is contained in:
Dave Airlie
2019-02-08 15:23:46 +10:00
parent 2458797256
commit d2e82c2682

View File

@@ -180,6 +180,7 @@ nir_visitor::nir_visitor(nir_shader *shader)
this->overload_table = _mesa_pointer_hash_table_create(NULL); this->overload_table = _mesa_pointer_hash_table_create(NULL);
this->result = NULL; this->result = NULL;
this->impl = NULL; this->impl = NULL;
this->deref = NULL;
memset(&this->b, 0, sizeof(this->b)); memset(&this->b, 0, sizeof(this->b));
} }