Mesa (master): nv50/ir: Add InsertConstraintsPass constructor.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 21 00:58:14 UTC 2021
Module: Mesa
Branch: master
Commit: 0da527028bc13734b5de3575e48ec9ea295e3b5d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0da527028bc13734b5de3575e48ec9ea295e3b5d
Author: Vinson Lee <vlee at freedesktop.org>
Date: Sat Jan 16 17:53:58 2021 -0800
nv50/ir: Add InsertConstraintsPass constructor.
Fix defect reported by Coverity Scan.
Uninitialized pointer field (UNINIT_CTOR)
member_not_init_in_gen_ctor: The compiler-generated constructor for this
class does not initialize targ.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Pierre Moreau <dev at pmoreau.org>
Reviewed-by: Karol Herbst <kherbst at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8541>
---
src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
index 8977c5f65b3..228ae3d9ba1 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
@@ -251,6 +251,7 @@ private:
class InsertConstraintsPass : public Pass {
public:
+ InsertConstraintsPass() : targ(NULL) { }
bool exec(Function *func);
private:
virtual bool visit(BasicBlock *);
More information about the mesa-commit
mailing list