From d3f0f0c4c04f775419be5f73a9bd8e3adc9d1a6b Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 2 Jan 2009 21:52:03 +0000 Subject: [PATCH] - BugFix: not all users of the frame are Sel nodes This fixes 20030811-1.c from gcc-torture [r25067] --- ir/opt/opt_frame.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); + } } } -- 2.20.1