From: Michael Beck Date: Fri, 2 Jan 2009 21:52:03 +0000 (+0000) Subject: - BugFix: not all users of the frame are Sel nodes X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d3f0f0c4c04f775419be5f73a9bd8e3adc9d1a6b;p=libfirm - BugFix: not all users of the frame are Sel nodes This fixes 20030811-1.c from gcc-torture [r25067] --- diff --git a/ir/opt/opt_frame.c b/ir/opt/opt_frame.c index 1212540a3..029d009ad 100644 --- a/ir/opt/opt_frame.c +++ b/ir/opt/opt_frame.c @@ -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); + } } }