From: Vinson Lee Date: Sat, 19 Oct 2013 02:15:37 +0000 (-0700) Subject: r600g/sb: Initialize shader::dce_flags. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c325aa5d803368adff6db20cebad7d5ab23f6eb1;p=mesa.git r600g/sb: Initialize shader::dce_flags. Fixes "Uninitialized scalar field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Vadim Girlin --- diff --git a/src/gallium/drivers/r600/sb/sb_shader.cpp b/src/gallium/drivers/r600/sb/sb_shader.cpp index 98e52b16e0e..38617a85330 100644 --- a/src/gallium/drivers/r600/sb/sb_shader.cpp +++ b/src/gallium/drivers/r600/sb/sb_shader.cpp @@ -39,7 +39,8 @@ shader::shader(sb_context &sctx, shader_target t, unsigned id) coal(*this), bbs(), target(t), vt(ex), ex(*this), root(), compute_interferences(), - has_alu_predication(), uses_gradients(), safe_math(), ngpr(), nstack() {} + has_alu_predication(), + uses_gradients(), safe_math(), ngpr(), nstack(), dce_flags() {} bool shader::assign_slot(alu_node* n, alu_node *slots[5]) {