mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-30 05:42:05 +00:00
Harden strip_typedef
Better support typedefs with void underlying types. * src/abg-ir.cc (strip_typedef): Consider that the underlying type can be void. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
876dab386e
commit
40d82be1ca
@ -2317,7 +2317,7 @@ strip_typedef(const type_base_sptr type)
|
||||
type_base_sptr t = type;
|
||||
|
||||
if (const typedef_decl_sptr ty = is_typedef(t))
|
||||
t = strip_typedef(ty->get_underlying_type());
|
||||
t = strip_typedef(type_or_void(ty->get_underlying_type()));
|
||||
else if (const reference_type_def_sptr ty = is_reference_type(t))
|
||||
{
|
||||
type_base_sptr p =
|
||||
|
Loading…
Reference in New Issue
Block a user