Fix cast in sort_congruence_class_groups_by_decl_uid.
authorMartin Liska <mliska@suse.cz>
Thu, 19 Sep 2019 15:16:15 +0000 (17:16 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 19 Sep 2019 15:16:15 +0000 (15:16 +0000)
2019-09-19  Martin Liska  <mliska@suse.cz>

* ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
Use proper casting.

From-SVN: r275969

gcc/ChangeLog
gcc/ipa-icf.c

index 06faf82e0552acc4387252a5a002fa9e0a379947..ac055ef27a53881c9894cad01476e60bccd29e28 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-19  Martin Liska  <mliska@suse.cz>
+
+       * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
+       Use proper casting.
+
 2019-09-19  Richard Henderson  <richard.henderson@linaro.org>
 
        * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
index 59b7f8b1b9d7829b131fc95de35e5065c8627ee3..009aeb487dd175c130c205a5d16d38af2f64415a 100644 (file)
@@ -3373,9 +3373,9 @@ static int
 sort_congruence_class_groups_by_decl_uid (const void *a, const void *b)
 {
   const std::pair<congruence_class_group *, int> *g1
-    = *(const std::pair<congruence_class_group *, int> *const *) a;
+    = (const std::pair<congruence_class_group *, int> *) a;
   const std::pair<congruence_class_group *, int> *g2
-    = *(const std::pair<congruence_class_group *, int> *const *) b;
+    = (const std::pair<congruence_class_group *, int> *) b;
   return g1->second - g2->second;
 }