summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bepeephole.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 09:35:51 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 23:03:57 +0200
commit5619c9122551713adbefc33977572639408dd8b9 (patch)
treed2733b5f8b468ee8e05bea8191c1406efb41a865 /ir/be/bepeephole.c
parent3aeb68ad2fefc380a05eccba1a8105ddbbd4ab21 (diff)
Let foreach_out_edge_kind() and foreach_out_edge_kind_safe() declare their iterator variables.
Diffstat (limited to 'ir/be/bepeephole.c')
-rw-r--r--ir/be/bepeephole.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ir/be/bepeephole.c b/ir/be/bepeephole.c
index ae296f4..2a08fc4 100644
--- a/ir/be/bepeephole.c
+++ b/ir/be/bepeephole.c
@@ -94,7 +94,6 @@ static void clear_defs(ir_node *node)
{
/* clear values defined */
if (get_irn_mode(node) == mode_T) {
- const ir_edge_t *edge;
foreach_out_edge(node, edge) {
ir_node *proj = get_edge_src_irn(edge);
clear_reg_value(proj);
@@ -229,9 +228,8 @@ static void process_block(ir_node *block, void *data)
*/
bool be_has_only_one_user(ir_node *node)
{
- int n = get_irn_n_edges(node);
- int n_users;
- const ir_edge_t *edge;
+ int n = get_irn_n_edges(node);
+ int n_users;
if (n <= 1)
return 1;