diff options
author | Dave Airlie <[email protected]> | 2012-11-30 20:23:20 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-12-01 11:27:16 +1000 |
commit | 906670a7906a785210c872f637239bf4afa5b63d (patch) | |
tree | 9bb87990cfbefbcfb08b27e97551d06ad5f54c69 | |
parent | d128ae347add426e4570c2e18ddee0cb4ed83401 (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]>
-rw-r--r-- | src/glsl/opt_constant_propagation.cpp | 1 |
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; |