From: Christoph Mallon Date: Wed, 27 Jul 2011 16:25:16 +0000 (+0200) Subject: Remove unnecessary explicit array length spcification. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a32d0c48d2bc61a80dfa616eef7d982dde65671b;p=libfirm Remove unnecessary explicit array length spcification. --- diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index 6ab9a5709..cfe8da323 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -5894,7 +5894,7 @@ static ir_node *transform_node_Load(ir_node *n) ir_node *bad = new_r_Bad(irg, mode_X); ir_mode *mode = get_Load_mode(n); ir_node *res = new_r_Proj(pred_load, mode, pn_Load_res); - ir_node *in[pn_Load_max+1] = { mem, res, jmp, bad }; + ir_node *in[] = { mem, res, jmp, bad }; ir_node *tuple = new_r_Tuple(block, ARRAY_SIZE(in), in); return tuple; } @@ -5914,7 +5914,7 @@ static ir_node *transform_node_Load(ir_node *n) ir_graph *irg = get_irn_irg(n); ir_node *bad = new_r_Bad(irg, mode_X); ir_node *res = value; - ir_node *in[pn_Load_max+1] = { mem, res, jmp, bad }; + ir_node *in[] = { mem, res, jmp, bad }; ir_node *tuple = new_r_Tuple(block, ARRAY_SIZE(in), in); return tuple; }