Since there will be only one instance of this class
alive at any time, it is better to declare this class as final.
Bootstrapped and tested on x86_64-linux-gnu.
gcc/ChangeLog:
* range-op.h (class range_op_table): Declare as a final class.
Signed-off-by: Andrew Pinski <[email protected]>
---
gcc/range-op.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/range-op.h b/gcc/range-op.h
index e415f87d7e6..8edf967a445 100644
--- a/gcc/range-op.h
+++ b/gcc/range-op.h
@@ -388,7 +388,7 @@ extern void wi_set_zero_nonzero_bits (tree type,
// This implements the range operator tables as local objects.
-class range_op_table
+class range_op_table final
{
public:
range_op_table ();
--
2.43.0