From: Vinson Lee Date: Tue, 24 Sep 2013 05:13:37 +0000 (-0700) Subject: glsl: Initialize ir_lower_jumps_visitor member variables. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59157d1c96f33ca56d9aba6cff75145d732dbbab;p=mesa.git glsl: Initialize ir_lower_jumps_visitor member variables. Fixes "Unintialized scalar field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/lower_jumps.cpp b/src/glsl/lower_jumps.cpp index 97b1abb9b02..02f65f097cc 100644 --- a/src/glsl/lower_jumps.cpp +++ b/src/glsl/lower_jumps.cpp @@ -281,8 +281,13 @@ struct ir_lower_jumps_visitor : public ir_control_flow_visitor { bool lower_main_return; ir_lower_jumps_visitor() + : progress(false), + pull_out_jumps(false), + lower_continue(false), + lower_break(false), + lower_sub_return(false), + lower_main_return(false) { - this->progress = false; } void truncate_after_instruction(exec_node *ir)