Fixed assertion: set_irn_node must check the node irgs, not
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 19 Oct 2005 16:50:20 +0000 (16:50 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 19 Oct 2005 16:50:20 +0000 (16:50 +0000)
the current_ir_graph

[r6757]

ir/ir/irnode_t.h

index e6fdaae..eb141a1 100644 (file)
@@ -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;
 }