Module: Mesa
Branch: master
Commit: 1193f2bd74a0eacd55b454ef372779b68973850c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1193f2bd74a0eacd55b454ef372779b68973850c

Author: Vinson Lee <[email protected]>
Date:   Sun Feb 28 18:44:27 2021 -0800

nv50/ir: Add constructor for NV50LegalizePostRA.

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 r63.

Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Karol Herbst <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9326>

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nv50.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nv50.cpp 
b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nv50.cpp
index 1f0fd466a99..00a468e31c8 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nv50.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nv50.cpp
@@ -205,6 +205,9 @@ expandIntegerMUL(BuildUtil *bld, Instruction *mul)
 
 class NV50LegalizePostRA : public Pass
 {
+public:
+   NV50LegalizePostRA() : r63(NULL) { }
+
 private:
    virtual bool visit(Function *);
    virtual bool visit(BasicBlock *);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to