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:
parent
c892412111
commit
57721591de
|
@ -365,6 +365,7 @@ IndirectPropagation::visit(BasicBlock *bb)
|
|||
class ConstantFolding : public Pass
|
||||
{
|
||||
public:
|
||||
ConstantFolding() : foldCount(0) {}
|
||||
bool foldAll(Program *);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue