nv50/ir: Initialize RegAlloc member func in constructor.

Fix defect reported by Coverity Scan.

Uninitialized pointer field (UNINIT_CTOR)
uninit_member: Non-static class member func 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/8568>
This commit is contained in:
Vinson Lee
2021-01-18 18:20:21 -08:00
committed by Marge Bot
parent 92ec7b577c
commit 9565c1d83c

View File

@@ -224,7 +224,7 @@ RegisterSet::release(DataFile f, int32_t reg, unsigned int size)
class RegAlloc
{
public:
RegAlloc(Program *program) : prog(program), sequence(0) { }
RegAlloc(Program *program) : prog(program), func(NULL), sequence(0) { }
bool exec();
bool execFunc();