glsl: Initialize ir_constant member const_elements in all constructors.
authorVinson Lee <vlee@freedesktop.org>
Fri, 18 Sep 2020 00:32:15 +0000 (17:32 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 22 Sep 2020 01:29:46 +0000 (18:29 -0700)
commit3022cf3bac5ac648f918aafe111e3308cd5af793
treeb6987c84a83b58495c46518fc819f2102f91ab2a
parenta5967f308ca9f67a83ba73167536c7f96a27500d
glsl: Initialize ir_constant member const_elements in all constructors.

Fix defects reported by Coverity Scan.

Uninitialized pointer field (UNINIT_CTOR)
uninit_member: Non-static class member const_elements is not
initialized in this constructor nor in any functions that it calls.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6770>
src/compiler/glsl/ir.cpp