projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94e3eca
)
glsl: Initialize ir_lower_jumps_visitor member variables.
author
Vinson Lee
<vlee@freedesktop.org>
Tue, 24 Sep 2013 05:13:37 +0000
(22:13 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Wed, 25 Sep 2013 05:54:25 +0000
(22:54 -0700)
Fixes "Unintialized scalar field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/lower_jumps.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/lower_jumps.cpp
b/src/glsl/lower_jumps.cpp
index 97b1abb9b0250da574621bde1515511a8b591e66..02f65f097cc6a4bc09e23b2e394dea2e31c19515 100644
(file)
--- 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)