Commit 91e6caeb authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Assert that the given node in set_r_cur_block() has mode BB.

parent 7152d625
...@@ -557,7 +557,8 @@ void set_cur_block(ir_node *target) ...@@ -557,7 +557,8 @@ void set_cur_block(ir_node *target)
void set_r_cur_block(ir_graph *irg, ir_node *target) void set_r_cur_block(ir_graph *irg, ir_node *target)
{ {
assert(target == NULL || irg == get_irn_irg(target)); assert(target == NULL || get_irn_mode(target) == mode_BB);
assert(target == NULL || get_irn_irg(target) == irg);
irg->current_block = target; irg->current_block = target;
} }
......
Supports Markdown
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