diff options
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index 0c07ac2..831ca31 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -4070,9 +4070,11 @@ type_hash_pair_compare (const void *p1_, const void *p2_) { const struct type_hash_pair *p1 = (const struct type_hash_pair *) p1_; const struct type_hash_pair *p2 = (const struct type_hash_pair *) p2_; - if (p1->hash == p2->hash) - return TYPE_UID (p1->type) - TYPE_UID (p2->type); - return p1->hash - p2->hash; + if (p1->hash < p2->hash) + return -1; + else if (p1->hash > p2->hash) + return 1; + return 0; } /* Returning a hash value for gimple type TYPE combined with VAL. |