Mesa (main): nv50/ir: Add FlatteningPass constructor.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 17 01:51:52 UTC 2021
Module: Mesa
Branch: main
Commit: 104aa6b5d1d31bc7627d7769a5b010e7dd1b7106
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=104aa6b5d1d31bc7627d7769a5b010e7dd1b7106
Author: Vinson Lee <vlee at freedesktop.org>
Date: Mon Aug 9 17:42:47 2021 -0700
nv50/ir: Add FlatteningPass 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 gpr_unit.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12295>
---
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
index 4e50d954daf..f9424289059 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
@@ -3277,6 +3277,9 @@ MemoryOpt::runOpt(BasicBlock *bb)
// constructs.
class FlatteningPass : public Pass
{
+public:
+ FlatteningPass() : gpr_unit(0) {}
+
private:
virtual bool visit(Function *);
virtual bool visit(BasicBlock *);
More information about the mesa-commit
mailing list