X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgraph.c;h=b2ff2072232974437be9cb78fb16fda1f670c3a5;hb=e5bab593a4048c0a320d7794fb2cb17697da8389;hp=987b08b141183082c4cb47be9eb70b884a075361;hpb=bc6960a5cec15fe0102a41684528ce0a76f93a54;p=libfirm diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 987b08b14..b2ff20722 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -195,7 +195,6 @@ ir_graph *new_const_code_irg(void) { iropt.c */ res->ent = NULL; res->frame_type = NULL; - res->initial_mem = new_Proj (res->start, mode_M, pn_Start_M); res->start_block = new_immBlock (); res->end_block = new_immBlock (); res->end = new_End (); @@ -204,6 +203,7 @@ ir_graph *new_const_code_irg(void) { mature_immBlock(get_cur_block()); /* mature the end block */ res->bad = new_ir_node (NULL, res, res->start_block, op_Bad, mode_T, 0, NULL); res->start = new_Start (); + res->initial_mem = new_Proj (res->start, mode_M, pn_Start_M); /* Proj results of start node */ projX = new_Proj (res->start, mode_X, pn_Start_X_initial_exec);