From: Christoph Mallon Date: Mon, 4 Aug 2008 18:47:14 +0000 (+0000) Subject: Initialise and set the "changed"-flag. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=2f89c8ddd0dedbd2f2014b2978dd6eb2b82fbba7;p=libfirm Initialise and set the "changed"-flag. [r20971] --- diff --git a/ir/lower/lower_switch.c b/ir/lower/lower_switch.c index 301cba462..726f45101 100644 --- a/ir/lower/lower_switch.c +++ b/ir/lower/lower_switch.c @@ -204,6 +204,7 @@ static void find_cond_nodes(ir_node *block, void *ctx) * Switch should be transformed into an if cascade. * So first order the cases, so we can do a binary search on them. */ + env->changed = 1; numcases = get_irn_n_outs(cond) - 1; // does not contain default case NEW_ARR_A(case_data_t, cases, numcases); @@ -255,6 +256,7 @@ void lower_switch(ir_graph *irg, unsigned spare_size) current_ir_graph = irg; + env.changed = 0; env.spare_size = spare_size; remove_critical_cf_edges(irg);