From 607199c1e8e96b833d4a42f065dd3deb147e7680 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 14 Jul 2008 14:14:09 +0000 Subject: [PATCH] really fix cp_error035 [r20450] --- ast2firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast2firm.c b/ast2firm.c index 9f0a11f..52c345a 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -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); -- 2.20.1