From 40d82be1ca27faee714a4cf116f18a7e0816be55 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Tue, 24 Feb 2015 12:59:51 +0100 Subject: [PATCH] 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 --- src/abg-ir.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abg-ir.cc b/src/abg-ir.cc index 8f73ec95..b4f5c378 100644 --- a/src/abg-ir.cc +++ b/src/abg-ir.cc @@ -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 =