[dwarf reader] Don't abort when trying to canonicalize a non-type

maybe_canonicalize_type is too strict when given a non type.  In that
case, it should just return, not abort.

	* src/abg-dwarf-reader.cc (maybe_canonicalize_type): Don't abort
	when trying to canonicalize a decl.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2017-01-14 00:43:57 +01:00
parent 970248b5ed
commit a7b6999602

View File

@ -12742,7 +12742,9 @@ maybe_canonicalize_type(Dwarf_Die *die, read_context& ctxt)
size_t die_offset = dwarf_dieoffset(die);
type_base_sptr t = ctxt.lookup_type_from_die(die);
assert(t);
if (!t)
return;
type_base_sptr peeled_type = peel_typedef_pointer_or_reference_type(t);
if (is_class_type(peeled_type)