From 763d76f7fdb79aa126c5eab6d6c5100aba70e589 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 2 Aug 2004 08:57:12 +0000 Subject: [PATCH] The const irg has not an initial_mem [r3656] --- ir/ir/irgraph.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 86e356ae2..ff67ad35d 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -204,12 +204,15 @@ ir_graph *new_const_code_irg(void) { res->end_except = res->end; mature_block(get_cur_block()); res->bad = new_ir_node (NULL, res, res->start_block, op_Bad, mode_T, 0, NULL); - /* res->unknown = new_ir_node (NULL, res, res->start_block, op_Unknown, mode_T, 0, NULL); */ res->start = new_Start (); /* Proj results of start node */ - projX = new_Proj (res->start, mode_X, pns_initial_exec); + projX = new_Proj (res->start, mode_X, pns_initial_exec); + res->initial_mem = new_Proj (res->start, mode_M, pns_global_store); + + set_store(res->initial_mem); add_in_edge(res->start_block, projX); + mature_block (res->current_block); add_in_edge (new_immBlock (), projX); mature_block(get_cur_block()); -- 2.20.1