mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-05 22:27:34 +00:00
Fix logic of type_has_non_canonicalized_subtype()
* src/abg-ir.cc (type_has_non_canonicalized_subtype): Once the type has been traversed, just test if the visitor has accumulated the 'has_non_canonical_type' property. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
636202c833
commit
47bdb5f6d3
@ -11100,9 +11100,8 @@ type_has_non_canonicalized_subtype(type_base_sptr t)
|
||||
return false;
|
||||
|
||||
non_canonicalized_subtype_detector v(t.get());
|
||||
if (!t->traverse(v))
|
||||
return v.has_non_canonical_type();
|
||||
return false;
|
||||
t->traverse(v);
|
||||
return v.has_non_canonical_type();
|
||||
}
|
||||
|
||||
/// Tests if the change of a given type effectively comes from just
|
||||
|
Loading…
Reference in New Issue
Block a user