In be_get_Proj_for_pn() before getting the proj number make sure that the node really...
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 11 Sep 2008 12:13:58 +0000 (12:13 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 11 Sep 2008 12:13:58 +0000 (12:13 +0000)
[r21847]

ir/be/beutil.c

index 3739603..8754f4d 100644 (file)
@@ -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;
        }