Commit f1e66693 authored by Matthias Braun's avatar Matthias Braun
Browse files

lower_switch: fix bug in normalisation

parent 0bce04d8
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment