summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestat.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2011-12-12 19:45:12 +0100
committerMatthias Braun <matze@braunis.de>2011-12-14 01:51:47 +0100
commit3e32262d83cf529f74aae833c7557557ab39782a (patch)
tree0dbb341d21a0ac98ce00a65238d83512e141bc1c /ir/be/bestat.c
parent6bc15eba58c5d8c33b010fdb85cbf384b758283e (diff)
Move current_ir_graph from ir_graph to ir_cons
It should only be used by construction algorithms
Diffstat (limited to 'ir/be/bestat.c')
-rw-r--r--ir/be/bestat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/bestat.c b/ir/be/bestat.c
index bdc8d9d..1fc426d 100644
--- a/ir/be/bestat.c
+++ b/ir/be/bestat.c
@@ -238,7 +238,7 @@ unsigned long be_count_insns(ir_graph *irg)
static void block_count_walker(ir_node *node, void *data)
{
unsigned long *cnt = (unsigned long*)data;
- if (node == get_irg_end_block(current_ir_graph))
+ if (node == get_irg_end_block(get_irn_irg(node)))
return;
(*cnt)++;
}