From ffe8c08da8110bfd76f15af57ae69553dd16d57a Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 4 Apr 2008 19:01:48 +0000 Subject: [PATCH] BugFix: - node were allocated on the wrong obstack when creating a graph copy [r19137] --- ir/ir/irgraph.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 18cebb5dc..5bdf76c86 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -382,10 +382,9 @@ ir_graph *new_const_code_irg(void) { * @param env The copied graph. */ static void copy_all_nodes(ir_node *n, void *env) { - ir_graph *irg = current_ir_graph; + ir_graph *irg = env; ir_op *op = get_irn_op(n); ir_node *nn; - (void) env; nn = new_ir_node(get_irn_dbg_info(n), irg, -- 2.20.1