glsl: initialise killed_all field.
authorDave Airlie <airlied@gmail.com>
Fri, 30 Nov 2012 10:23:20 +0000 (20:23 +1000)
committerDave Airlie <airlied@gmail.com>
Sat, 1 Dec 2012 01:27:16 +0000 (11:27 +1000)
coverity pointed out this field was being used uninitialised.

Note: This is a candidate for stable branches.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/glsl/opt_constant_propagation.cpp

index c5ae36b692c61a1b43c13bf06202f44b7a8e678f..a03811999a0657e726c03ed8bd72a23f0ac1be88 100644 (file)
@@ -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;