Commit dcaa0aaf authored by Andreas Seltenreich's avatar Andreas Seltenreich
Browse files

Avoid using uninitialized edge_info->list_heads.

build_edges_walker calls get_block_n on block preds, possibly consing
and hashing a node which init_lh_walker couldn't reach via
irg_walk_anchors.

This fixes a crash I see when compiling Postgres.
parent 95439e41
......@@ -645,9 +645,9 @@ void edges_activate_kind(ir_graph *irg, ir_edge_kind_t kind)
visit_all_identities(irg, visitor, &visit);
irg_walk_anchors(irg, NULL, build_edges_walker, &w);
} else {
irg_walk_anchors(irg, init_lh_walker, build_edges_walker, &w);
visit.visit = init_lh_walker;
visit_all_identities(irg, visitor, &visit);
irg_walk_anchors(irg, init_lh_walker, build_edges_walker, &w);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment