Just assure edges, instead of blindly activating them
authorAndreas Zwinkau <zwinkau@kit.edu>
Fri, 24 Oct 2008 13:28:42 +0000 (13:28 +0000)
committerAndreas Zwinkau <zwinkau@kit.edu>
Fri, 24 Oct 2008 13:28:42 +0000 (13:28 +0000)
Maybe edges_activate_kind should assert !info->activated ?

[r23169]

ir/ana/absgraph.c

index e2c9bc2..02adff8 100644 (file)
@@ -35,7 +35,7 @@
 static void *irg_cfg_succ_get_root(void *self)
 {
        ir_graph *irg = self;
-       edges_activate_kind(irg, EDGE_KIND_BLOCK);
+       edges_assure_kind(irg, EDGE_KIND_BLOCK);
        return get_irg_start_block(irg);
 }