The const irg has not an initial_mem
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 2 Aug 2004 08:57:12 +0000 (08:57 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 2 Aug 2004 08:57:12 +0000 (08:57 +0000)
[r3656]

ir/ir/irgraph.c

index 86e356a..ff67ad3 100644 (file)
@@ -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());