From: Matthias Braun Date: Mon, 11 Jun 2007 13:29:09 +0000 (+0000) Subject: don't cound backwards with size_t variables X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=924c56e74c0a72470f209ea5772140dedc40a4e0;p=libfirm don't cound backwards with size_t variables [r14405] --- diff --git a/ir/be/bespilldaemel.c b/ir/be/bespilldaemel.c index 17acc810c..fde2d6517 100644 --- a/ir/be/bespilldaemel.c +++ b/ir/be/bespilldaemel.c @@ -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;