Fixed bug with double deactivate
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Fri, 1 Jul 2005 11:42:22 +0000 (11:42 +0000)
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Fri, 1 Jul 2005 11:42:22 +0000 (11:42 +0000)
[r6167]

ir/ir/iredges.c

index 2a7395c..51a3932 100644 (file)
@@ -248,8 +248,10 @@ void edges_deactivate(ir_graph *irg)
        irg_edge_info_t *info = _get_irg_edge_info(irg);
 
        info->activated = 0;
-       if(info->edges)
+       if(info->edges) {
                del_set(info->edges);
+    info->edges = NULL;
+  }
 }
 
 int (edges_activated)(const ir_graph *irg)