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

fix bug in switch_lowerer

parent 9d0be5dc
......@@ -235,6 +235,7 @@ static void create_out_of_bounds_check(cond_env_t *env, ir_node *cond)
delta = env->switch_min;
env->switch_min = 0;
env->switch_max -= delta;
set_Cond_selector(cond, sel);
/* check for out-of-bounds */
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