From d8e3add202e09c5e4250b3e8fca75174fa83918a Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 19 Oct 2005 16:50:20 +0000 Subject: [PATCH] Fixed assertion: set_irn_node must check the node irgs, not the current_ir_graph [r6757] --- ir/ir/irnode_t.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/ir/irnode_t.h b/ir/ir/irnode_t.h index e6fdaaeb1..eb141a153 100644 --- a/ir/ir/irnode_t.h +++ b/ir/ir/irnode_t.h @@ -497,7 +497,7 @@ _set_irn_link(ir_node *node, void *link) { assert (node); /* Link field is used for Phi construction and various optimizations in iropt. */ - assert(get_irg_phase_state(current_ir_graph) != phase_building); + assert(get_irg_phase_state(get_irn_irg(node)) != phase_building); node->link = link; } -- 2.20.1