From: Michael Beck Date: Wed, 19 Oct 2005 16:50:20 +0000 (+0000) Subject: Fixed assertion: set_irn_node must check the node irgs, not X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d8e3add202e09c5e4250b3e8fca75174fa83918a;p=libfirm Fixed assertion: set_irn_node must check the node irgs, not the current_ir_graph [r6757] --- 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; }