diff options
author | Vinson Lee <vlee@freedesktop.org> | 2013-09-23 22:13:37 -0700 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2013-09-24 22:54:25 -0700 |
commit | 59157d1c96f33ca56d9aba6cff75145d732dbbab (patch) | |
tree | c360d27ce9ec1d6e490ec4dad9cf182a67312ce4 /src/glsl/lower_jumps.cpp | |
parent | 94e3ecae2d0d7b22ca545026345ca872ec2edf72 (diff) | |
download | external_mesa3d-59157d1c96f33ca56d9aba6cff75145d732dbbab.zip external_mesa3d-59157d1c96f33ca56d9aba6cff75145d732dbbab.tar.gz external_mesa3d-59157d1c96f33ca56d9aba6cff75145d732dbbab.tar.bz2 |
glsl: Initialize ir_lower_jumps_visitor member variables.
Fixes "Unintialized scalar field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/glsl/lower_jumps.cpp')
-rw-r--r-- | src/glsl/lower_jumps.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glsl/lower_jumps.cpp b/src/glsl/lower_jumps.cpp index 97b1abb..02f65f0 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) |