get_irn_n_edges: out_count still broken, switched back to recalculation
[libfirm] / ir / ir / irgmod.c
index 6a3b4eb..47abfa3 100644 (file)
@@ -62,6 +62,8 @@ exchange (ir_node *old, ir_node *nw)
    */
   if (edges_activated(current_ir_graph)) {
     edges_reroute(old, nw, current_ir_graph);
+    edges_node_deleted(old, current_ir_graph);
+    old->op = op_Bad;
   }
   else {
     /* Else, do it the old-fashioned way. */