From 60292a288c2638c6f6ad2e4fc574943214129a20 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sat, 3 Jan 2009 02:37:44 +0000 Subject: [PATCH] - BugFix: not all users of the frame are Sel nodes (now all cases fixed) [r25069] --- 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 029d009ad..b98554057 100644 --- a/ir/opt/opt_frame.c +++ b/ir/opt/opt_frame.c @@ -64,8 +64,10 @@ void opt_frame_irg(ir_graph *irg) { /* mark all used entities */ foreach_out_edge(frame, edge) { sel = get_edge_src_irn(edge); - ent = get_Sel_entity(sel); - set_entity_link(ent, ent); + if (is_Sel(sel)) { + ent = get_Sel_entity(sel); + set_entity_link(ent, ent); + } } } else { /* use traditionally out edges */ -- 2.20.1