From: Christoph Mallon Date: Thu, 11 Sep 2008 12:13:58 +0000 (+0000) Subject: In be_get_Proj_for_pn() before getting the proj number make sure that the node really... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=7028fcf7d7e9b79261634b3f103a226e9e903a0d;p=libfirm In be_get_Proj_for_pn() before getting the proj number make sure that the node really is a Proj (could be End due to keep alive). [r21847] --- diff --git a/ir/be/beutil.c b/ir/be/beutil.c index 373960339..8754f4d8f 100644 --- a/ir/be/beutil.c +++ b/ir/be/beutil.c @@ -230,7 +230,7 @@ ir_node *be_get_Proj_for_pn(const ir_node *irn, long pn) { foreach_out_edge(irn, edge) { proj = get_edge_src_irn(edge); - if (get_Proj_proj(proj) == pn) + if (is_Proj(proj) && get_Proj_proj(proj) == pn) return proj; }