Add an assert to the pointer diff reporting code

* src/abg-comparison.cc (pointer_diff::report): If the pointer
	diff node is deemed to be reported then the underlying diff node
	should be reported as well.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-04-16 11:03:02 +02:00
parent 00a0f986d6
commit 609a49832c

View File

@ -1692,6 +1692,7 @@ pointer_diff::report(ostream& out, const string& indent) const
string name = d->first_subject()->get_pretty_representation();
if (diff_sptr d2 = context()->has_diff_for(d))
{
assert(d2->to_be_reported());
if (d2->currently_reporting())
out << indent << "pointed to type '"
<< name