From 5adba503ddf0dea1c34d11c0cf505eff3a2eb70c Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 26 Oct 2020 18:26:00 -0700 Subject: [PATCH] nvir/gm107: Initialize SchedDataCalculatorGM107 member score. Fix defect reported by Coverity Scan. Uninitialized pointer field (UNINIT_CTOR) uninit_member: Non-static class member score 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_sched_gm107.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_sched_gm107.h b/src/gallium/drivers/nouveau/codegen/nv50_ir_sched_gm107.h index 54443ae..0a3678c 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_sched_gm107.h +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_sched_gm107.h @@ -5,7 +5,7 @@ namespace nv50_ir { class SchedDataCalculatorGM107 : public Pass { public: - SchedDataCalculatorGM107(const TargetGM107 *targ) : targ(targ) {} + SchedDataCalculatorGM107(const TargetGM107 *targ) : score(NULL), targ(targ) {} private: struct RegScores -- 2.7.4