From: Matthias Braun Date: Sat, 13 Dec 2008 19:47:38 +0000 (+0000) Subject: missing skip_typeref X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=56de10a1d17a296465b414644386155ff4585f9b;p=cparser missing skip_typeref [r24626] --- diff --git a/ast2firm.c b/ast2firm.c index 03b2c59..c989f72 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -4411,7 +4411,7 @@ static void declaration_statement_to_firm(declaration_statement_t *statement) if (is_declaration(entity)) { initialize_local_declaration(entity); } else if (entity->kind == ENTITY_TYPEDEF) { - type_t *const type = entity->typedefe.type; + type_t *const type = skip_typeref(entity->typedefe.type); if (is_type_array(type) && type->array.is_vla) get_vla_size(&type->array); }