mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-17 15:34:34 +00:00
[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:
parent
970248b5ed
commit
a7b6999602
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user