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:
Dodji Seketeli 2014-04-15 11:49:26 +02:00
parent b6c3e9ec0a
commit e641f7a61c

View File

@ -565,7 +565,8 @@ class_decl::hash::operator()(const class_decl& t) const
t.get_member_functions().begin();
f != t.get_member_functions().end();
++f)
v = hashing::combine_hashes(v, hash_member_fn(**f));
if (member_function_is_virtual(*f))
v = hashing::combine_hashes(v, hash_member_fn(**f));
// Hash member function templates
for (class_decl::member_function_templates::const_iterator f =