glsl: Initialize ir_if_to_cond_assign_visitor members in constructor.

Fix defects reported by Coverity Scan.

Uninitialized scalar field (UNINIT_CTOR)
uninit_member: Non-static class member found_unsupported_op is not
initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member found_expensive_op is not
initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member found_dynamic_arrayref is not
initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member is_then is not initialized in
this constructor nor in any functions that it calls.
uninit_member: Non-static class member then_cost is not initialized in
this constructor nor in any functions that it calls.
uninit_member: Non-static class member else_cost is not initialized in
this constructor nor in any functions that it calls.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7228>
diff --git a/src/compiler/glsl/lower_if_to_cond_assign.cpp b/src/compiler/glsl/lower_if_to_cond_assign.cpp
index ca61f1d..ed7fa4d 100644
--- a/src/compiler/glsl/lower_if_to_cond_assign.cpp
+++ b/src/compiler/glsl/lower_if_to_cond_assign.cpp
@@ -65,8 +65,14 @@
                                 unsigned max_depth,
                                 unsigned min_branch_cost)
    {
+      this->found_unsupported_op = false;
+      this->found_expensive_op = false;
+      this->found_dynamic_arrayref = false;
+      this->is_then = false;
       this->progress = false;
       this->stage = stage;
+      this->then_cost = 0;
+      this->else_cost = 0;
       this->max_depth = max_depth;
       this->min_branch_cost = min_branch_cost;
       this->depth = 0;