From 9565c1d83c97f29a8c03b6974c6e6b48bd498a12 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 18 Jan 2021 18:20:21 -0800 Subject: [PATCH] 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 Reviewed-by: Karol Herbst Part-of: --- src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp index 228ae3d9ba1..20c6acadc17 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp @@ -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();