nv50/ir: Add constructor for NV50LegalizePostRA.
authorVinson Lee <vlee@freedesktop.org>
Mon, 1 Mar 2021 02:44:27 +0000 (18:44 -0800)
committerVinson Lee <vlee@freedesktop.org>
Sun, 14 Mar 2021 23:49:49 +0000 (16:49 -0700)
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 <vlee@freedesktop.org>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9326>

src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nv50.cpp

index 1f0fd46..00a468e 100644 (file)
@@ -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 *);