Cleanup.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 12 Dec 2007 15:05:39 +0000 (15:05 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 12 Dec 2007 15:05:39 +0000 (15:05 +0000)
[r18711]

parser.c

index 1550ee7..d71c5cd 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -2274,7 +2274,6 @@ static type_t *construct_declarator_type(construct_type_t *construct_list,
 static declaration_t *parse_declarator(
                const declaration_specifiers_t *specifiers, bool may_be_abstract)
 {
-       type_t        *type         = specifiers->type;
        declaration_t *const declaration = allocate_declaration_zero();
        declaration->storage_class  = specifiers->storage_class;
        declaration->modifiers      = specifiers->decl_modifiers;
@@ -2282,6 +2281,7 @@ static declaration_t *parse_declarator(
 
        construct_type_t *construct_type
                = parse_inner_declarator(declaration, may_be_abstract);
+       type_t *const type = specifiers->type;
        declaration->type = construct_declarator_type(construct_type, type);
 
        if(construct_type != NULL) {