Commit 12dd27f5 authored by Matthias Braun's avatar Matthias Braun
Browse files

iredges: attempt to make deletion while iterating errors explicit

This may make opt/reassoc033.c fail consistently instead of randomly.
parent ef5f90e4
......@@ -834,6 +834,7 @@ static void irg_walk_edges2(ir_node *node, irg_walk_func *pre,
foreach_out_edge_kind_safe(node, edge, EDGE_KIND_NORMAL) {
/* find the corresponding successor block. */
ir_node *pred = get_edge_src_irn(edge);
assert(pred != NULL && "edge deleted while iterating?");
irg_walk_edges2(pred, pre, post, env);
}
......
Supports Markdown
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