Make sure we don't early-canonicalize function types. We need to wait
after the end of building the ABI corpus before canonicalizing these.
Normally this should be taken care of by using
type_has_non_canonicalized_subtype but there are cases where that
function does not detect that a type has sub-types that are not
canonicalized.
Fixed thus.
* src/abg-dwarf-reader.cc (maybe_canonicalize_type):
Late-canonicalize function types.
signed-off-by: Dodji Seketeli <dodji@redhat.com>
assert(t);
type_base_sptr peeled_type = peel_typedef_pointer_or_reference_type(t);
- if (is_class_type(peeled_type) || is_union_type(peeled_type))
+ if (is_class_type(peeled_type)
+ || is_union_type(peeled_type)
+ || is_function_type(peeled_type))
// We delay canonicalization of classes/unions or typedef,
// pointers, references and array to classes/unions. This is
// because the (underlying) class might not be finished yet and we