summaryrefslogtreecommitdiffhomepage
path: root/ir/stat
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2014-03-09 09:19:28 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2014-03-13 06:52:28 +0100
commit74cacb71715cc623a28a0b01db674a931dee43b6 (patch)
treec767dcf82ff502191a506e9eaa24e7f732c0f23c /ir/stat
parent8cdc52483a6fb700a7c80980c3f62b9d752c0553 (diff)
all: Do not change current_ir_graph during walking/analyses/...
Diffstat (limited to 'ir/stat')
-rw-r--r--ir/stat/firmstat.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ir/stat/firmstat.c b/ir/stat/firmstat.c
index e97b4e3..765a0d1 100644
--- a/ir/stat/firmstat.c
+++ b/ir/stat/firmstat.c
@@ -1108,14 +1108,10 @@ static void update_graph_stat(graph_entry_t *global, graph_entry_t *graph)
/* count the number of address calculation */
if (graph->irg != get_const_code_irg()) {
- ir_graph *rem = current_ir_graph;
-
assure_irg_outs(graph->irg);
/* Must be done an the outs graph */
- current_ir_graph = graph->irg;
irg_out_walk(get_irg_start(graph->irg), NULL, mark_address_calc, graph);
- current_ir_graph = rem;
#ifdef DUMP_ADR_MODE
/* register the vcg hook and dump the graph for test */