]> git.ipfire.org Git - thirdparty/gcc.git/commit
Ranger: Mark a few classes as final
authorAndrew Pinski <quic_apinski@quicinc.com>
Sat, 22 Jun 2024 04:07:26 +0000 (21:07 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Thu, 11 Jul 2024 16:18:56 +0000 (09:18 -0700)
commit4e0aa05f67cf79729c2a8c20236de885f2e393d1
treefd6d40a65b82bb46209a258166ae8799818c564b
parent8dbc02ba43d9e89056f4ba21d664118377f7da40
Ranger: Mark a few classes as final

I noticed there was a warning from clang about int_range's
dtor being marked as final saying the class cannot be inherited from.
So let's mark the few ranger classes as final for those which we know
will be final.

Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

* value-range.h (class int_range): Mark as final.
(class prange): Likewise.
(class frange): Likewise.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/value-range.h