From 259b1e33f1f38d7835c29cf8b87c903936a837d6 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sun, 5 Mar 2006 01:17:21 +0000 Subject: [PATCH] clean up a bit [r7413] --- ir/ana/irouts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ir/ana/irouts.c b/ir/ana/irouts.c index a037db164..3e6fa3df7 100644 --- a/ir/ana/irouts.c +++ b/ir/ana/irouts.c @@ -98,7 +98,7 @@ int get_Block_n_cfg_outs(ir_node *bl) { ir_node *get_Block_cfg_out(ir_node *bl, int pos) { int i, out_pos = 0; - assert(bl && (get_irn_op(bl) == op_Block)); + assert(bl && is_Block(bl)); #ifdef DEBUG_libfirm assert (bl->out_valid); #endif /* defined DEBUG_libfirm */ @@ -178,7 +178,7 @@ void irg_out_block_walk(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void *env) { - assert((get_irn_op(node) == op_Block) || (get_irn_mode(node) == mode_X)); + assert(is_Block(node) || (get_irn_mode(node) == mode_X)); inc_irg_block_visited(current_ir_graph); @@ -349,7 +349,7 @@ static INLINE void fix_start_proj(ir_graph *irg) { int i; if (get_Block_n_cfg_outs(startbl)) { - for (i = 0; i < get_irn_n_outs(startbl); i++) + for (i = get_irn_n_outs(startbl) - 1; i >= 0; --i) if (get_irn_mode(get_irn_out(startbl, i)) == mode_X) { proj = get_irn_out(startbl, i); break; -- 2.20.1