mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-26 19:52:08 +00:00
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:
parent
67e6971005
commit
0951fd93ea
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user