Module: Mesa Branch: master Commit: 9565c1d83c97f29a8c03b6974c6e6b48bd498a12 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9565c1d83c97f29a8c03b6974c6e6b48bd498a12
Author: Vinson Lee <v...@freedesktop.org> Date: Mon Jan 18 18:20:21 2021 -0800 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 <v...@freedesktop.org> Reviewed-by: Karol Herbst <kher...@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8568> --- 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(); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit