From: Michael Beck Date: Fri, 24 Feb 2006 15:59:11 +0000 (+0000) Subject: BugFix: index calculation X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=7154830c528bf4f329dc4f2ddde6a241b24cec0c;p=libfirm BugFix: index calculation --- diff --git a/ir/be/benode.c b/ir/be/benode.c index 5ee171556..24c139ea3 100644 --- a/ir/be/benode.c +++ b/ir/be/benode.c @@ -407,7 +407,7 @@ static void be_limited(void *data, bitset_t *bs) void be_set_constr_single_reg(ir_node *irn, int pos, const arch_register_t *reg) { - int idx = pos < 0 ? -(pos - 1) : pos; + int idx = pos < 0 ? -(pos + 1) : pos; be_node_attr_t *a = get_irn_attr(irn); be_reg_data_t *rd = &a->reg_data[idx]; be_req_t *r = pos < 0 ? &rd->req : &rd->in_req;