summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-07-22 17:22:52 +0200
committerMatthias Braun <matze@braunis.de>2014-07-22 17:53:25 +0200
commitdfefa17ee279670b58f13031c78387a3ded34af1 (patch)
tree1a5c7c29866269aef7fea1e68d6e159090b8fc2f /ir/be/beutil.c
parent2d0194359073d5d2d16c466bbd9e5d033b24218e (diff)
cleanup, use C99
Diffstat (limited to 'ir/be/beutil.c')
-rw-r--r--ir/be/beutil.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ir/be/beutil.c b/ir/be/beutil.c
index 914dd1e..86331ad 100644
--- a/ir/be/beutil.c
+++ b/ir/be/beutil.c
@@ -32,11 +32,9 @@ void be_clear_links(ir_graph *irg)
*/
ir_node *be_get_Proj_for_pn(const ir_node *irn, long pn)
{
- ir_node *proj;
assert(get_irn_mode(irn) == mode_T && "need mode_T");
-
foreach_out_edge(irn, edge) {
- proj = get_edge_src_irn(edge);
+ ir_node *proj = get_edge_src_irn(edge);
if (is_Proj(proj) && get_Proj_proj(proj) == pn)
return proj;