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

forbid to set current_block to Bad

This was used as a hack to mark unreachable code by some people, but it
is prefered to simply use a new Block without predecessors, or set NULL
if you have to.
parent bc4068b9
......@@ -528,8 +528,8 @@ void set_cur_block(ir_node *target)
void set_r_cur_block(ir_graph *irg, ir_node *target)
assert(get_irg_phase_state(irg) == phase_building);
assert(target == NULL || get_irn_mode(target) == mode_BB);
assert(target == NULL || get_irn_irg(target) == irg);
assert(target == NULL || is_Block(target));
assert(target == NULL || get_irn_irg(target) == irg);
irg->current_block = target;
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