From: Matthias Braun Date: Thu, 3 Nov 2011 17:43:49 +0000 (+0100) Subject: lower_switch: fix bug in normalisation X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=f1e666938231b9b4a1a2a7f6cfa891cf36353ef7;p=libfirm lower_switch: fix bug in normalisation --- diff --git a/ir/lower/lower_switch.c b/ir/lower/lower_switch.c index 800312e88..2b7806198 100644 --- a/ir/lower/lower_switch.c +++ b/ir/lower/lower_switch.c @@ -229,8 +229,8 @@ static void normalize_switch(switch_info_t *info) min_const = new_r_Const(irg, delta); selector = new_rd_Sub(dbgi, block, selector, min_const, mode); - info->switch_min = 0; info->switch_max -= info->switch_min; + info->switch_min = 0; } if (delta != NULL || change_mode) {