Reduce code duplication: Implement set_cur_block() by calling set_r_cur_block().
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 1 Jun 2011 06:22:44 +0000 (08:22 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 1 Jun 2011 06:23:01 +0000 (08:23 +0200)
ir/ir/ircons.c

index 5a8c025..a3a5c17 100644 (file)
@@ -552,8 +552,7 @@ void add_immBlock_pred(ir_node *block, ir_node *jmp)
 
 void set_cur_block(ir_node *target)
 {
-       assert(target == NULL || current_ir_graph == get_irn_irg(target));
-       current_ir_graph->current_block = target;
+       set_r_cur_block(current_ir_graph, target);
 }
 
 void set_r_cur_block(ir_graph *irg, ir_node *target)