intel/compiler: fix uninit non-static variable. (v2)

Pointed out by coverity.

v2: init nir_locals also.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
Dave Airlie
2019-04-11 20:31:59 +10:00
parent ce17e413de
commit 3323cf08f0

View File

@@ -1889,6 +1889,9 @@ vec4_visitor::vec4_visitor(const struct brw_compiler *compiler,
this->max_grf = devinfo->gen >= 7 ? GEN7_MRF_HACK_START : BRW_MAX_GRF;
this->uniforms = 0;
this->nir_locals = NULL;
this->nir_ssa_values = NULL;
}