]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
jit: add "final override" to diagnostic sink [PR116613]
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 13 Feb 2025 23:10:47 +0000 (18:10 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 13 Feb 2025 23:10:47 +0000 (18:10 -0500)
I added class jit_diagnostic_listener in r15-4760-g0b73e9382ab51c
but forgot to annotate one of the vfuncs with "override".

Fixed thusly.

gcc/jit/ChangeLog:
PR other/116613
* dummy-frontend.cc
(jit_diagnostic_listener::on_report_diagnostic): Add
"final override".

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/jit/dummy-frontend.cc

index 1d0080d6fecb411b5f525157f686cdb6de3e5d37..88784ec9e92f99ffd51c9d12793baadc1ff52176 100644 (file)
@@ -1017,7 +1017,7 @@ public:
   }
 
   void on_report_diagnostic (const diagnostic_info &info,
-                            diagnostic_t orig_diag_kind)
+                            diagnostic_t orig_diag_kind) final override
   {
     JIT_LOG_SCOPE (gcc::jit::active_playback_ctxt->get_logger ());