[has_type_change] Better detect type size changes

While looking at something else, I noticed that we could be missing
type size changes on function parameters when using has_type_change.

Fixed thus.

	* src/abg-comp-filter.cc (has_type_change): Support function
	parameters.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2019-09-04 11:07:59 +02:00
parent 4fba6bea17
commit e528d5b8ac

View File

@ -176,6 +176,9 @@ has_type_size_change(const diff* diff)
if (!diff)
return false;
if (const fn_parm_diff* fn_parm_d = is_fn_parm_diff(diff))
diff = fn_parm_d->type_diff().get();
type_base_sptr f = is_type(diff->first_subject()),
s = is_type(diff->second_subject());