From: Christoph Mallon Date: Wed, 17 Aug 2011 17:40:37 +0000 (+0200) Subject: Remove unnecessary assignment, which at worst hides a panic. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=8fc8db570d845dc81cf4cfbd03f4350a87537583;p=libfirm Remove unnecessary assignment, which at worst hides a panic. --- diff --git a/ir/be/beabi.c b/ir/be/beabi.c index 7a5f0c0bd..1da1d04a8 100644 --- a/ir/be/beabi.c +++ b/ir/be/beabi.c @@ -1181,9 +1181,8 @@ static ir_type *compute_arg_type(ir_graph *irg, be_abi_call_t *call, /* collect existing entities for value_param_types */ for (f = n_frame_members; f > 0; ) { - ir_entity *entity = get_compound_member(frame_type, --f); - size_t num; - be_abi_call_arg_t *arg; + ir_entity *entity = get_compound_member(frame_type, --f); + size_t num; set_entity_link(entity, NULL); if (!is_parameter_entity(entity)) @@ -1193,9 +1192,7 @@ static ir_type *compute_arg_type(ir_graph *irg, be_abi_call_t *call, if (map[num] != NULL) panic("multiple entities for parameter %u in %+F found", f, irg); - arg = get_call_arg(call, 0, num, 1); - if (!arg->on_stack) { - map[num] = NULL; + if (!get_call_arg(call, 0, num, 1)->on_stack) { /* don't move this entity */ continue; }