Fix r16004.
[libfirm] / testprograms / global_var_example.c
index 2bf7051..393213a 100644 (file)
@@ -94,7 +94,7 @@ int main(int argc, char **argv)
 
   store = new_Store (get_store(), i_ptr,
                     new_Const(mode_Is, new_tarval_from_long (2, mode_Is)));
-  set_store(new_Proj(store, mode_M, 0));
+  set_store(new_Proj(store, mode_M, pn_Store_M));
 
   x = new_Return (get_store(), 0, NULL);
 
@@ -108,7 +108,7 @@ int main(int argc, char **argv)
   /* Now we can mature the end block as all it's predecessors are known. */
   mature_immBlock (get_irg_end_block(irg));
 
-  finalize_cons (irg);
+  irg_finalize_cons (irg);
 
   printf("Optimizing ...\n");
   dead_node_elimination(irg);