diff mbox series

[1/5] range: Make range_op_table class final

Message ID 20240806212714.308434-2-quic_apinski@quicinc.com
State New
Headers show
Series some small ranger op table cleanup | expand

Commit Message

Andrew Pinski Aug. 6, 2024, 9:27 p.m. UTC
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 <quic_apinski@quicinc.com>
---
 gcc/range-op.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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 ();