missing skip_typeref
authorMatthias Braun <matze@braunis.de>
Sat, 13 Dec 2008 19:47:38 +0000 (19:47 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 13 Dec 2008 19:47:38 +0000 (19:47 +0000)
[r24626]

ast2firm.c

index 03b2c59..c989f72 100644 (file)
@@ -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);
                        }