aboutsummaryrefslogtreecommitdiff
path: root/gcc/analyzer/sm-fd.cc
diff options
context:
space:
mode:
authorImmad Mir <mirimmad@outlook.com>2022-07-06 21:37:14 +0530
committerImmad Mir <mirimmad@outlook.com>2022-07-06 21:37:30 +0530
commit3a6de2b2db500d76ac141a6ef85d336bd0f8430b (patch)
tree81f1a975c4a215a6b2f5ecc9d4e98535fea3457c /gcc/analyzer/sm-fd.cc
parent71c05bb8e2b7585f459b702cc1b55efe9892cc3d (diff)
downloadgcc-3a6de2b2db500d76ac141a6ef85d336bd0f8430b.zip
gcc-3a6de2b2db500d76ac141a6ef85d336bd0f8430b.tar.gz
gcc-3a6de2b2db500d76ac141a6ef85d336bd0f8430b.tar.bz2
analyzer: reorder initialization of state m_invalid in sm-fd.cc [PR106184]
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>
Diffstat (limited to 'gcc/analyzer/sm-fd.cc')
-rw-r--r--gcc/analyzer/sm-fd.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/analyzer/sm-fd.cc b/gcc/analyzer/sm-fd.cc
index 8196d33..8e4300b 100644
--- a/gcc/analyzer/sm-fd.cc
+++ b/gcc/analyzer/sm-fd.cc
@@ -551,11 +551,12 @@ fd_state_machine::fd_state_machine (logger *logger)
m_unchecked_read_write (add_state ("fd-unchecked-read-write")),
m_unchecked_read_only (add_state ("fd-unchecked-read-only")),
m_unchecked_write_only (add_state ("fd-unchecked-write-only")),
- m_invalid (add_state ("fd-invalid")),
m_valid_read_write (add_state ("fd-valid-read-write")),
m_valid_read_only (add_state ("fd-valid-read-only")),
m_valid_write_only (add_state ("fd-valid-write-only")),
- m_closed (add_state ("fd-closed")), m_stop (add_state ("fd-stop"))
+ m_invalid (add_state ("fd-invalid")),
+ m_closed (add_state ("fd-closed")),
+ m_stop (add_state ("fd-stop"))
{
}