From 2f89c8ddd0dedbd2f2014b2978dd6eb2b82fbba7 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 4 Aug 2008 18:47:14 +0000 Subject: [PATCH] Initialise and set the "changed"-flag. [r20971] --- ir/lower/lower_switch.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.20.1