It is customary to mark the gate and execute functions of the classes
representing passes as final override but this is missing in
pass_sccopy. This patch adds it which also silences clang warnings
about it.
gcc/ChangeLog:
2025-06-24 Martin Jambor <mjambor@suse.cz>
* gimple-ssa-sccopy.cc (class pass_sccopy): Mark member functions
gate and execute as final override.
{}
/* opt_pass methods: */
- virtual bool gate (function *) { return true; }
- virtual unsigned int execute (function *);
+ virtual bool gate (function *) final override { return true; }
+ virtual unsigned int execute (function *) final override;
opt_pass * clone () final override { return new pass_sccopy (m_ctxt); }
}; // class pass_sccopy