Fix a typo when reporting size change wrt a decl-only class

When a class is compared to its decl-only counterpart, if the user
doesn't want to see decl-only class related change, then do not report
any size change that might result from it.

This was already meant to be implemented but there was a typo.  Fixed
thus.

	* src/abg-comparison.cc (report_size_and_alignment_changes): Fix
	typo.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2017-07-03 16:30:17 +02:00
parent 6f7d84e508
commit c47fa9c2ce

View File

@ -3155,7 +3155,7 @@ report_size_and_alignment_changes(type_or_decl_base_sptr first,
second_class = is_class_or_union_type(second);
if (filtering::has_class_decl_only_def_change(first_class, second_class)
&& !ctxt->get_allowed_category() & CLASS_DECL_ONLY_DEF_CHANGE_CATEGORY)
&& !(ctxt->get_allowed_category() & CLASS_DECL_ONLY_DEF_CHANGE_CATEGORY))
// So these two classes differ only by the fact that one is the
// declaration-only form of the second. And the user asked that
// this kind of change be filtered out, so do not report any size