From: Dave Airlie Date: Thu, 11 Apr 2019 10:31:59 +0000 (+1000) Subject: intel/compiler: fix uninit non-static variable. (v2) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3323cf08f002e63f26d83268c12c635866aa102b;p=mesa.git intel/compiler: fix uninit non-static variable. (v2) Pointed out by coverity. v2: init nir_locals also. Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/compiler/brw_vec4_visitor.cpp b/src/intel/compiler/brw_vec4_visitor.cpp index fa62abb03c8..09363c87093 100644 --- a/src/intel/compiler/brw_vec4_visitor.cpp +++ b/src/intel/compiler/brw_vec4_visitor.cpp @@ -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; }