From 388e5dc18ade61c5a1699b51839a6f5ede954436 Mon Sep 17 00:00:00 2001 From: Sebastian Hack Date: Fri, 10 Mar 2006 16:57:45 +0000 Subject: [PATCH] Fixed a bug --- ir/be/beabi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ir/be/beabi.c b/ir/be/beabi.c index f5ce3402d..07b0a2033 100644 --- a/ir/be/beabi.c +++ b/ir/be/beabi.c @@ -560,9 +560,9 @@ static ir_node *adjust_call(be_abi_irg_t *env, ir_node *irn, ir_node *curr_sp) /* Set the register classes and constraints of the Call parameters. */ for(i = 0; i < n_low_args; ++i) { int index = low_args[i]; - const arch_register_t *reg = get_call_arg(call, 0, index)->reg; - assert(reg != NULL); - be_set_constr_single_reg(low_call, index, reg); + be_abi_call_arg_t *arg = get_call_arg(call, 0, index); + assert(arg->reg != NULL); + be_set_constr_single_reg(low_call, index, arg->reg); } /* Set the register constraints of the results. */ @@ -1225,7 +1225,6 @@ void be_abi_fix_stack_nodes(be_abi_irg_t *env) { dom_front_info_t *df; pset *stack_nodes; - pmap_entry *ent; /* We need dominance frontiers for fix up */ df = be_compute_dominance_frontiers(env->birg->irg); -- 2.20.1