X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgraph.c;h=c6d7c414054bd7684e7790b959e6700ba12c6a69;hb=eb47aca33f2f8c414409f3695e73277b47442334;hp=6a96a4b19e953e9d118b5ac2a3378c7340bf49d7;hpb=1a3b7d363474ab544c13093a2f0b578718d37c7a;p=libfirm diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 6a96a4b19..c6d7c4140 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -154,7 +154,7 @@ ir_graph *new_r_ir_graph(ir_entity *ent, int n_loc) { ir_graph *res; ir_node *first_block; - ir_node *end, *start, *start_block, *initial_mem, *projX, *bad; + ir_node *start, *start_block, *initial_mem, *projX; res = alloc_graph(); @@ -212,13 +212,11 @@ ir_graph *new_r_ir_graph(ir_entity *ent, int n_loc) /*-- Nodes needed in every graph --*/ set_irg_end_block (res, new_r_immBlock(res)); - end = new_r_End(res, 0, NULL); - set_irg_end(res, end); + set_irg_end(res, new_r_End(res, 0, NULL)); start_block = new_r_Block_noopt(res, 0, NULL); set_irg_start_block(res, start_block); - bad = new_r_Bad(res); - set_irg_bad (res, bad); + set_irg_bad (res, new_r_Bad(res)); set_irg_no_mem (res, new_r_NoMem(res)); start = new_r_Start(res); set_irg_start (res, start); @@ -494,7 +492,7 @@ long get_irg_graph_nr(const ir_graph *irg) } #endif -int get_irg_idx(const ir_graph *irg) +size_t get_irg_idx(const ir_graph *irg) { return irg->index; }