Make decl hashing always take qualified name into account

* src/abg-hash.cc (decl_base:#️⃣:operator()(const decl_base&)):
	Always hash the qualified name of the decl.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2015-08-26 12:49:40 +02:00
parent 85feb73bad
commit d169d57e54

View File

@ -109,7 +109,7 @@ struct decl_base::hash
size_t v = str_hash(typeid(d).name());
if (!d.get_linkage_name().empty())
v = hashing::combine_hashes(v, str_hash(d.get_linkage_name()));
else if (!d.get_name().empty())
if (!d.get_name().empty())
v = hashing::combine_hashes(v, str_hash(d.get_qualified_name()));
if (is_member_decl(d))
{