From: Christoph Mallon Date: Wed, 5 Dec 2012 13:17:26 +0000 (+0100) Subject: instrument: Remove stale start loop test. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=4ef694e7427191d868477ccb429899fe1ae9b2fc;p=libfirm instrument: Remove stale start loop test. --- diff --git a/ir/ir/instrument.c b/ir/ir/instrument.c index d322170e9..ed9e223c6 100644 --- a/ir/ir/instrument.c +++ b/ir/ir/instrument.c @@ -34,7 +34,6 @@ void instrument_initcall(ir_graph *irg, ir_entity *ent) { ir_node *initial_exec; - ir_node *start_block; ir_node *first_block = NULL; int i, idx, need_new_block; symconst_symbol sym; @@ -43,12 +42,11 @@ void instrument_initcall(ir_graph *irg, ir_entity *ent) /* find the first block */ initial_exec = get_irg_initial_exec(irg); - start_block = get_irg_start_block(irg); foreach_out_edge(initial_exec, edge) { ir_node *succ = get_edge_src_irn(edge); - if (succ != start_block && is_Block(succ)) { + if (is_Block(succ)) { /* found the first block */ first_block = succ; break;