From: Martin Liska Date: Thu, 19 Sep 2019 15:16:15 +0000 (+0200) Subject: Fix cast in sort_congruence_class_groups_by_decl_uid. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f576d304d65c184572a6f8ce7541196e5da5c1c;p=gcc.git Fix cast in sort_congruence_class_groups_by_decl_uid. 2019-09-19 Martin Liska * ipa-icf.c (sort_congruence_class_groups_by_decl_uid): Use proper casting. From-SVN: r275969 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06faf82e055..ac055ef27a5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-09-19 Martin Liska + + * ipa-icf.c (sort_congruence_class_groups_by_decl_uid): + Use proper casting. + 2019-09-19 Richard Henderson * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index 59b7f8b1b9d..009aeb487dd 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -3373,9 +3373,9 @@ static int sort_congruence_class_groups_by_decl_uid (const void *a, const void *b) { const std::pair *g1 - = *(const std::pair *const *) a; + = (const std::pair *) a; const std::pair *g2 - = *(const std::pair *const *) b; + = (const std::pair *) b; return g1->second - g2->second; }