summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-09-17 16:00:05 +0200
committerMatthias Braun <matze@braunis.de>2014-09-17 17:17:44 +0200
commite628faf6cca8076e9c100e3e109da2f7172fcc2a (patch)
treeb4e05fa44820f4d71a2a7f733e0a3230cef91fbd /ir/be/beutil.c
parentf3209aa8d3fe148e180d1747e7360a8d8737e598 (diff)
rename proj attribute from Proj to num and change type to unsigned
Diffstat (limited to 'ir/be/beutil.c')
-rw-r--r--ir/be/beutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/beutil.c b/ir/be/beutil.c
index 9373c2c..cfa5a17 100644
--- a/ir/be/beutil.c
+++ b/ir/be/beutil.c
@@ -31,13 +31,13 @@
/**
* Gets the Proj with number pn from irn.
*/
-ir_node *be_get_Proj_for_pn(const ir_node *irn, long pn)
+ir_node *be_get_Proj_for_pn(const ir_node *irn, unsigned pn)
{
assert(get_irn_mode(irn) == mode_T && "need mode_T");
foreach_out_edge(irn, edge) {
ir_node *proj = get_edge_src_irn(edge);
- if (is_Proj(proj) && get_Proj_proj(proj) == pn)
+ if (is_Proj(proj) && get_Proj_num(proj) == pn)
return proj;
}