From 195d3b24e3046f76f1e87f5892b4fd057c873e7d Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Thu, 17 May 2007 06:39:30 +0000 Subject: [PATCH] Use the proper magic word (get_Block_n_cfgpreds()) to get the number of cf predecessors of a block instead of the generic get_irn_arity(). [r13910] --- ir/be/beblocksched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/be/beblocksched.c b/ir/be/beblocksched.c index 74187b74b..a6b6af738 100644 --- a/ir/be/beblocksched.c +++ b/ir/be/beblocksched.c @@ -137,7 +137,7 @@ static void collect_egde_frequency(ir_node *block, void *data) if (block == get_irg_start_block(env->irg)) return; - arity = get_irn_arity(block); + arity = get_Block_n_cfgpreds(block); if (arity == 1) { edge.block = block; -- 2.20.1