glsl: Initialize ir_to_mesa_visitor members in constructor.
authorVinson Lee <vlee@freedesktop.org>
Thu, 8 Oct 2020 21:55:17 +0000 (14:55 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:07:24 +0000 (21:07 +0000)
commitbdb1e5aa0ae6410ec829f6213549f951a5f17684
tree3f3433a854a6ccf7b1ddceb525e1ab3b1ab41ffc
parent6529cbd0bcd2b3c663f6407bab71ed72de83ae3c
glsl: Initialize ir_to_mesa_visitor members in constructor.

Fix defects reported by Coverity Scan.

Uninitialized pointer field (UNINIT_CTOR)
uninit_member: Non-static class member ctx is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member prog is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member shader_program is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member options 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/7071>
src/mesa/program/ir_to_mesa.cpp