summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2012-11-30 20:23:20 +1000
committerDave Airlie <[email protected]>2012-12-01 11:27:16 +1000
commit906670a7906a785210c872f637239bf4afa5b63d (patch)
tree9bb87990cfbefbcfb08b27e97551d06ad5f54c69 /src/glsl
parentd128ae347add426e4570c2e18ddee0cb4ed83401 (diff)
glsl: initialise killed_all field.
coverity pointed out this field was being used uninitialised. Note: This is a candidate for stable branches. Reviewed-by: Brian Paul <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/opt_constant_propagation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/opt_constant_propagation.cpp b/src/glsl/opt_constant_propagation.cpp
index c5ae36b692c..a03811999a0 100644
--- a/src/glsl/opt_constant_propagation.cpp
+++ b/src/glsl/opt_constant_propagation.cpp
@@ -92,6 +92,7 @@ public:
ir_constant_propagation_visitor()
{
progress = false;
+ killed_all = false;
mem_ctx = ralloc_context(0);
this->acp = new(mem_ctx) exec_list;
this->kills = new(mem_ctx) exec_list;