From 57721591dec9cd2a58cf6210ba11e99dfe6f0a66 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 8 May 2021 16:42:52 -0700 Subject: [PATCH] nv50/ir: Add ConstantFolding constructor. Fix defect reported by Coverity Scan. Uninitialized scalar field (UNINIT_CTOR) member_not_init_in_gen_ctor: The compiler-generated constructor for this class does not initialize foldCount. Signed-off-by: Vinson Lee Reviewed-by: Ilia Mirkin Reviewed-by: Karol Herbst Part-of: --- src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp index 8a167d7..385cb02 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -365,6 +365,7 @@ IndirectPropagation::visit(BasicBlock *bb) class ConstantFolding : public Pass { public: + ConstantFolding() : foldCount(0) {} bool foldAll(Program *); private: -- 2.7.4