From 3323cf08f002e63f26d83268c12c635866aa102b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 11 Apr 2019 20:31:59 +1000 Subject: intel/compiler: fix uninit non-static variable. (v2) Pointed out by coverity. v2: init nir_locals also. Reviewed-by: Lionel Landwerlin --- src/intel/compiler/brw_vec4_visitor.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3