really fix cp_error035
authorMatthias Braun <matze@braunis.de>
Mon, 14 Jul 2008 14:14:09 +0000 (14:14 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 14 Jul 2008 14:14:09 +0000 (14:14 +0000)
[r20450]

ast2firm.c

index 9f0a11f..52c345a 100644 (file)
@@ -3716,12 +3716,12 @@ static void allocate_variable_length_array(declaration_t *declaration)
 
        dbg_info *dbgi      = get_dbg_info(&declaration->source_position);
        type_t   *type      = declaration->type;
-       ir_node  *mem       = get_store();
        ir_type  *el_type   = get_ir_type(type->array.element_type);
 
        /* make sure size_node is calculated */
        get_type_size(type);
        ir_node  *elems = type->array.size_node;
+       ir_node  *mem   = get_store();
        ir_node  *alloc = new_d_Alloc(dbgi, mem, elems, el_type, stack_alloc);
 
        ir_node  *proj_m = new_d_Proj(dbgi, alloc, mode_M, pn_Alloc_M);