Commit d3f0f0c4 authored by Michael Beck's avatar Michael Beck
Browse files

- BugFix: not all users of the frame are Sel nodes

  This fixes 20030811-1.c from gcc-torture

[r25067]
parent fcba9f9a
......@@ -74,8 +74,10 @@ void opt_frame_irg(ir_graph *irg) {
/* mark all used entities */
for (i = get_irn_n_outs(frame) - 1; i >= 0; --i) {
sel = get_irn_out(frame, i);
ent = get_Sel_entity(sel);
set_entity_link(ent, ent);
if (is_Sel(sel)) {
ent = get_Sel_entity(sel);
set_entity_link(ent, ent);
}
}
}
......
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