nv50/ir: Initialize Converter members.

Fix defects reported by Coverity Scan.

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

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6695>
This commit is contained in:
Vinson Lee 2020-09-11 15:49:50 -07:00 committed by Marge Bot
parent e607477d7c
commit c7719b8cfc

View file

@ -198,6 +198,8 @@ Converter::Converter(Program *prog, nir_shader *nir, nv50_ir_prog_info *info,
nir(nir),
curLoopDepth(0),
curIfDepth(0),
exit(NULL),
immInsertPos(NULL),
clipVertexOutput(-1)
{
zero = mkImm((uint32_t)0);