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 <vlee@freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10713>
This commit is contained in:
Vinson Lee 2021-05-08 16:42:52 -07:00 committed by Marge Bot
parent c892412111
commit 57721591de
1 changed files with 1 additions and 0 deletions

View File

@ -365,6 +365,7 @@ IndirectPropagation::visit(BasicBlock *bb)
class ConstantFolding : public Pass
{
public:
ConstantFolding() : foldCount(0) {}
bool foldAll(Program *);
private: