mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-28 20:22:49 +00:00
Do not hash non-virtual member functions when hashing a class
* src/abg-hash.cc (class_decl:#️⃣:operator): Do not hash
non-virtual member functions.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
b6c3e9ec0a
commit
e641f7a61c
@ -565,6 +565,7 @@ class_decl::hash::operator()(const class_decl& t) const
|
|||||||
t.get_member_functions().begin();
|
t.get_member_functions().begin();
|
||||||
f != t.get_member_functions().end();
|
f != t.get_member_functions().end();
|
||||||
++f)
|
++f)
|
||||||
|
if (member_function_is_virtual(*f))
|
||||||
v = hashing::combine_hashes(v, hash_member_fn(**f));
|
v = hashing::combine_hashes(v, hash_member_fn(**f));
|
||||||
|
|
||||||
// Hash member function templates
|
// Hash member function templates
|
||||||
|
Loading…
Reference in New Issue
Block a user