https://gcc.gnu.org/g:00712aebedcd79854d180b842a9300e8325fb184

commit r16-1682-g00712aebedcd79854d180b842a9300e8325fb184
Author: Martin Jambor <mjam...@suse.cz>
Date:   Wed Jun 25 17:03:39 2025 +0200

    value-relation.h: Mark dom_oracle::next_relation as override
    
    When GCC is compiled with clang, it emits a warning that
    dom_oracle::next_relation is not marked as override even though it
    does override a virtual function of its ancestor.  This patch marks it
    as such to silence the warning and for the sake of consistency.
    
    There are other member functions in the class which are marked as
    final override but this particular function is in the protected
    section so I decided to just mark it as override.
    
    gcc/ChangeLog:
    
    2025-06-24  Martin Jambor  <mjam...@suse.cz>
    
            * value-relation.h (class dom_oracle): Mark member function
            next_relation as override.

Diff:
---
 gcc/value-relation.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/value-relation.h b/gcc/value-relation.h
index 1081877ccca7..87f0d856fabd 100644
--- a/gcc/value-relation.h
+++ b/gcc/value-relation.h
@@ -235,7 +235,7 @@ public:
   void dump (FILE *f) const final override;
 protected:
   virtual relation_chain *next_relation (basic_block, relation_chain *,
-                                        tree) const;
+                                        tree) const override;
   bool m_do_trans_p;
   bitmap m_tmp, m_tmp2;
   bitmap m_relation_set;  // Index by ssa-name. True if a relation exists

Reply via email to