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:
Dodji Seketeli 2015-07-24 00:52:28 +02:00
parent 636202c833
commit 47bdb5f6d3

View File

@ -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