From e641f7a61c66f0c57028bf1e5ceabc85fdd04390 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Tue, 15 Apr 2014 11:49:26 +0200 Subject: [PATCH] Do not hash non-virtual member functions when hashing a class * src/abg-hash.cc (class_decl::hash::operator): Do not hash non-virtual member functions. Signed-off-by: Dodji Seketeli --- src/abg-hash.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/abg-hash.cc b/src/abg-hash.cc index 53cc4b0f..5e1df61b 100644 --- a/src/abg-hash.cc +++ b/src/abg-hash.cc @@ -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 =