Remove unnecessary explicit array length spcification.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 27 Jul 2011 16:25:16 +0000 (18:25 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 27 Jul 2011 16:25:16 +0000 (18:25 +0200)
ir/ir/iropt.c

index 6ab9a57..cfe8da3 100644 (file)
@@ -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;
                }