Fix access_changed and data_member_offset_changed predicates

* src/abg-comp-filter.cc (access_changed)
	(data_member_offset_changed): Fix detection of membership.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-03-31 09:38:11 +02:00
parent 67e6971005
commit 0951fd93ea

View File

@ -94,7 +94,7 @@ static bool
access_changed(decl_base_sptr f, decl_base_sptr s)
{
if (!is_member_decl(f)
&& !is_member_decl(s))
|| !is_member_decl(s))
return false;
access_specifier fa = get_member_access_specifier(f),
@ -119,7 +119,7 @@ static bool
data_member_offset_changed(decl_base_sptr f, decl_base_sptr s)
{
if (!is_member_decl(f)
&& !is_member_decl(s))
|| !is_member_decl(s))
return false;
var_decl_sptr v0 = dynamic_pointer_cast<var_decl>(f),