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:
Dodji Seketeli 2015-02-24 12:59:51 +01:00
parent 876dab386e
commit 40d82be1ca

View File

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