projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4e5f09
)
In be_get_Proj_for_pn() before getting the proj number make sure that the node really...
author
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 11 Sep 2008 12:13:58 +0000
(12:13 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 11 Sep 2008 12:13:58 +0000
(12:13 +0000)
[r21847]
ir/be/beutil.c
patch
|
blob
|
history
diff --git
a/ir/be/beutil.c
b/ir/be/beutil.c
index
3739603
..
8754f4d
100644
(file)
--- 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);
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;
}
return proj;
}