X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Finstrument.c;h=c64e3a6d34d3676fa26176a342dd2df17c126042;hb=b4647d67ab7885d5da32c2a30242fbc4ed93d81b;hp=fe53f4d701eed19aaf238383caa29d4d94c56d56;hpb=bc35052031be38b7243401b37fe1d791728c7df2;p=libfirm diff --git a/ir/ir/instrument.c b/ir/ir/instrument.c index fe53f4d70..c64e3a6d3 100644 --- a/ir/ir/instrument.c +++ b/ir/ir/instrument.c @@ -35,7 +35,8 @@ /** * Adds a Call at the beginning of the given irg. */ -void instrument_initcall(ir_graph *irg, ir_entity *ent) { +void instrument_initcall(ir_graph *irg, ir_entity *ent) +{ const ir_edge_t *edge; ir_node *initial_exec; ir_node *initial_mem; @@ -89,7 +90,7 @@ void instrument_initcall(ir_graph *irg, ir_entity *ent) { adr = new_r_SymConst(irg, mode_P_code, sym, symconst_addr_ent); call = new_r_Call(first_block, get_irg_no_mem(irg), adr, 0, NULL, get_entity_type(ent)); - new_mem = new_r_Proj(first_block, call, mode_M, pn_Call_M); + new_mem = new_r_Proj(call, mode_M, pn_Call_M); initial_mem = get_irg_initial_mem(irg); edges_reroute(initial_mem, new_mem, irg);