Commit 9f576d30 by Martin Liska Committed by Martin Liska

Fix cast in sort_congruence_class_groups_by_decl_uid.

2019-09-19  Martin Liska  <mliska@suse.cz>

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

From-SVN: r275969
parent 3950b229
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> 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
* config/aarch64/aarch64.c (aarch64_print_operand): Allow integer * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
......
...@@ -3373,9 +3373,9 @@ static int ...@@ -3373,9 +3373,9 @@ static int
sort_congruence_class_groups_by_decl_uid (const void *a, const void *b) 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> *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> *g2
= *(const std::pair<congruence_class_group *, int> *const *) b; = (const std::pair<congruence_class_group *, int> *) b;
return g1->second - g2->second; return g1->second - g2->second;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment