Remove too eager asserts

* src/abg-comparison.cc
	(class_diff::ensure_lookup_tables_populated): Do not assert that
	the same member type cannot be deleted/inserted twice.  It
	actually can for, pointers, references, typedefs, etc.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-02-10 15:06:29 +01:00
parent 7a3229046b
commit 53d291cd0b

View File

@ -1718,8 +1718,6 @@ class_diff::ensure_lookup_tables_populated(void) const
if (klass_decl && klass_decl->is_declaration_only())
continue;
string qname = d->get_qualified_name();
assert(priv_->deleted_member_types_.find(qname)
== priv_->deleted_member_types_.end());
priv_->deleted_member_types_[qname] = d;
}
@ -1739,8 +1737,6 @@ class_diff::ensure_lookup_tables_populated(void) const
if (klass_decl && klass_decl->is_declaration_only())
continue;
string qname = d->get_qualified_name();
assert(priv_->inserted_member_types_.find(qname)
== priv_->inserted_member_types_.end());
string_decl_base_sptr_map::const_iterator j =
priv_->deleted_member_types_.find(qname);
if (j != priv_->deleted_member_types_.end())