[PATCH] Fix incorrect discriminator assignment.
Cary Coutant
ccoutant@google.com
Wed May 22 16:40:00 GMT 2013
@@ -105,7 +105,7 @@ struct locus_descrim_hasher : typed_free_remove <l
inline hashval_t
locus_descrim_hasher::hash (const value_type *item)
{
- return item->locus;
+ return LOCATION_LINE (item->locus);
}
/* Equality function for the locus-to-discriminator map. A and B
@@ -114,7 +114,7 @@ locus_descrim_hasher::hash (const value_type *item
inline bool
locus_descrim_hasher::equal (const value_type *a, const compare_type *b)
{
- return a->locus == b->locus;
+ return LOCATION_LINE (a->locus) == LOCATION_LINE (b->locus);
}
While you're in that part of the code, could you fix the spelling of
locus_descrim_hasher? Should be "locus_discrim_hasher".
-cary
More information about the Gcc-patches
mailing list