Commit 7028fcf7 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

In be_get_Proj_for_pn() before getting the proj number make sure that the node...

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]
parent f4e5f095
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment