]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: Fix a typo in function name
authorJakub Jelinek <jakub@redhat.com>
Tue, 15 Nov 2022 07:17:11 +0000 (08:17 +0100)
committerJakub Jelinek <jakub@redhat.com>
Sun, 20 Nov 2022 17:46:38 +0000 (18:46 +0100)
I've noticed I've made a typo in the name of the function.
Fixed thusly.

2022-11-15  Jakub Jelinek  <jakub@redhat.com>

* cp-tree.h (next_common_initial_seqence): Rename to ...
(next_common_initial_sequence): ... this.
* typeck.cc (next_common_initial_seqence): Rename to ...
(next_common_initial_sequence): ... this.
(layout_compatible_type_p): Call next_common_initial_sequence
rather than next_common_initial_seqence.
* semantics.cc (is_corresponding_member_aggr): Likewise.

(cherry picked from commit 87c4057b3fc7fe2c2f8914d2755024ca890a3bc1)

gcc/cp/cp-tree.h
gcc/cp/semantics.cc
gcc/cp/typeck.cc

index 72f4398a8f90717a03b5610a8c23f89500413382..cb434af789d81d7ad68ecb30fd5bd137e73fb377 100644 (file)
@@ -7957,7 +7957,7 @@ extern bool comp_except_specs                     (const_tree, const_tree, int);
 extern bool comptypes                          (tree, tree, int);
 extern bool same_type_ignoring_top_level_qualifiers_p (tree, tree);
 extern bool similar_type_p                     (tree, tree);
-extern bool next_common_initial_seqence                (tree &, tree &);
+extern bool next_common_initial_sequence       (tree &, tree &);
 extern bool layout_compatible_type_p           (tree, tree);
 extern bool compparms                          (const_tree, const_tree);
 extern int comp_cv_qualification               (const_tree, const_tree);
index a158d626ac129a8d40375aa13ca75ed6e5a0284c..de755904d505583885559fc47b49149fbed82e57 100644 (file)
@@ -11600,7 +11600,7 @@ is_corresponding_member_aggr (location_t loc, tree basetype1, tree membertype1,
   tree ret = boolean_false_node;
   while (1)
     {
-      bool r = next_common_initial_seqence (field1, field2);
+      bool r = next_common_initial_sequence (field1, field2);
       if (field1 == NULL_TREE || field2 == NULL_TREE)
        break;
       if (r
index 341869fc550f4ec7e7ab33c158becfd7e169403b..b2ffde34dde917fdd073fa68d702b0b166fc93ed 100644 (file)
@@ -1627,7 +1627,7 @@ similar_type_p (tree type1, tree type2)
    the common initial sequence.  */
 
 bool
-next_common_initial_seqence (tree &memb1, tree &memb2)
+next_common_initial_sequence (tree &memb1, tree &memb2)
 {
   while (memb1)
     {
@@ -1719,7 +1719,7 @@ layout_compatible_type_p (tree type1, tree type2)
        {
          while (1)
            {
-             if (!next_common_initial_seqence (field1, field2))
+             if (!next_common_initial_sequence (field1, field2))
                return false;
              if (field1 == NULL_TREE)
                return true;