Remove overly eager assert in distinct_diff::report

Since we now have proper diff node filtering capabilities, it appears
that there can be distinct diff node that is deemed to be reported
even though it's child node is not; this happens when the distinct
diff node does carry local changes.  So remove the assert that was
saying otherwise and enjoy one less abort.

	* src/abg-comparison.cc (distinct_diff::report): Remove over-eager
	assert.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2015-02-20 14:19:33 +01:00
parent 49cc99fa7d
commit 80b3e35a5d

View File

@ -3816,11 +3816,7 @@ distinct_diff::report(ostream& out, const string& indent) const
ss = strip_typedef(is_type(s));
if (diff_sptr diff = compatible_child_diff())
{
if (diff->has_changes())
assert(diff->to_be_reported());
diff->report(out, indent + " ");
}
diff->report(out, indent + " ");
else
report_size_and_alignment_changes(f, s, context(), out, indent, true);
}