When the size of a var_decl changes, we want the 'equals' function for
var_decl to report that change as being a local one, not a subtype
one.
This patch fixes that.
* src/abg-ir.cc (equals): In the var_decl overload detect size
changes of type as being a local change.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
{
result = false;
if (k)
- *k |= SUBTYPE_CHANGE_KIND;
+ {
+ if (!equals(*l.get_naked_type(), *r.get_naked_type(), 0))
+ *k |= LOCAL_CHANGE_KIND;
+ else
+ *k |= SUBTYPE_CHANGE_KIND;
+ }
else
return false;
}