projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a1c957a
)
Remove unnecessary explicit array length spcification.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 27 Jul 2011 16:25:16 +0000
(18:25 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 27 Jul 2011 16:25:16 +0000
(18:25 +0200)
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
6ab9a57
..
cfe8da3
100644
(file)
--- 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 *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;
}
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_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;
}
ir_node *tuple = new_r_Tuple(block, ARRAY_SIZE(in), in);
return tuple;
}