]> sourceware.org Git - libabigail.git/commitdiff
Make decl hashing always take qualified name into account
authorDodji Seketeli <dodji@redhat.com>
Wed, 26 Aug 2015 10:49:40 +0000 (12:49 +0200)
committerDodji Seketeli <dodji@redhat.com>
Sat, 29 Aug 2015 14:23:15 +0000 (16:23 +0200)
* src/abg-hash.cc (decl_base::hash::operator()(const decl_base&)):
Always hash the qualified name of the decl.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-hash.cc

index b07dd1ff99a7d83cb9a43cb472b0e1c4c911f0a9..8823cd0872be53d9b51b896ae582522a91844c34 100644 (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))
       {
This page took 0.035585 seconds and 5 git commands to generate.