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>
This commit is contained in:
@@ -65,8 +65,14 @@ public:
|
||||
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;
|
||||
|
Reference in New Issue
Block a user