]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
analyzer: reorder initialization of state m_invalid in sm-fd.cc [PR106184]
authorImmad Mir <mirimmad@outlook.com>
Wed, 6 Jul 2022 16:07:14 +0000 (21:37 +0530)
committerImmad Mir <mirimmad@outlook.com>
Wed, 6 Jul 2022 16:07:30 +0000 (21:37 +0530)
This patch reorders the initialization of state m_invalid in sm-fd.cc
so that the order of initializers is same as the ordering of the fields
in the class decl.

gcc/analyzer/ChangeLog:
PR analyzer/106184
* sm-fd.cc (fd_state_machine): Change ordering of initialization
of state m_invalid so that the order of initializers is same as
the ordering of the fields in the class decl.

Signed-off-by: Immad Mir <mirimmad@outlook.com>
gcc/analyzer/sm-fd.cc

index 8196d33223ac413a2b906df1a81f14fcfda18abb..8e4300b06e24876f5a832f714dc719a9e0385906 100644 (file)
@@ -551,11 +551,12 @@ fd_state_machine::fd_state_machine (logger *logger)
       m_unchecked_read_write (add_state ("fd-unchecked-read-write")),\r
       m_unchecked_read_only (add_state ("fd-unchecked-read-only")),\r
       m_unchecked_write_only (add_state ("fd-unchecked-write-only")),\r
-      m_invalid (add_state ("fd-invalid")),\r
       m_valid_read_write (add_state ("fd-valid-read-write")),\r
       m_valid_read_only (add_state ("fd-valid-read-only")),\r
       m_valid_write_only (add_state ("fd-valid-write-only")),\r
-      m_closed (add_state ("fd-closed")), m_stop (add_state ("fd-stop"))\r
+      m_invalid (add_state ("fd-invalid")),\r
+      m_closed (add_state ("fd-closed")),\r
+      m_stop (add_state ("fd-stop"))\r
 {\r
 }\r
 \r