Assert that the given node in set_r_cur_block() has mode BB.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 1 Jun 2011 06:20:31 +0000 (08:20 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 1 Jun 2011 06:23:25 +0000 (08:23 +0200)
ir/ir/ircons.c

index a3a5c17..d878c1d 100644 (file)
@@ -557,7 +557,8 @@ void set_cur_block(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;
 }