don't cound backwards with size_t variables
authorMatthias Braun <matze@braunis.de>
Mon, 11 Jun 2007 13:29:09 +0000 (13:29 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 11 Jun 2007 13:29:09 +0000 (13:29 +0000)
[r14405]

ir/be/bespilldaemel.c

index 17acc81..fde2d65 100644 (file)
@@ -226,7 +226,7 @@ void do_spilling(daemel_env_t *env, ir_nodeset_t *live_nodes, ir_node *node)
 
                /* make sure the node is not an argument of the instruction */
                is_use = 0;
-               for (i = arity - 1; i >= 0; --i) {
+               for (i = 0; i < arity; ++i) {
                        ir_node *in = get_irn_n(node, i);
                        if(in == cand_node) {
                                is_use = 1;