From 8151258b5c98b0539f694f98ae6b4f70992d58bd Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 12 May 2011 14:18:37 +0200 Subject: [PATCH] irg_walk_anchors uses visited field, reserve it --- ir/ir/irgwalk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ir/ir/irgwalk.c b/ir/ir/irgwalk.c index 5ed8c0153..22feaeba3 100644 --- a/ir/ir/irgwalk.c +++ b/ir/ir/irgwalk.c @@ -422,8 +422,10 @@ void irg_walk_anchors(ir_graph *irg, irg_walk_func *pre, irg_walk_func *post, vo ir_graph * rem = current_ir_graph; current_ir_graph = irg; + ir_reserve_resources(irg, IR_RESOURCE_IRN_VISITED); inc_irg_visited(irg); irg_walk_2(irg->anchor, pre, post, env); + ir_free_resources(irg, IR_RESOURCE_IRN_VISITED); current_ir_graph = rem; } -- 2.20.1