X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Fglobal_var_example.c;h=393213a91b973e4bc096c3f56d7755a8fcd8c18c;hb=65bee87011120c5b4fad28224cdc65ae11af91f3;hp=2bf7051f48f12cbe5b38ded8cdb738ab6de9a47f;hpb=dddcc630819f338c3b45e2bc646233e6872d5bb6;p=libfirm diff --git a/testprograms/global_var_example.c b/testprograms/global_var_example.c index 2bf7051f4..393213a91 100644 --- a/testprograms/global_var_example.c +++ b/testprograms/global_var_example.c @@ -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);