summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorElias Aebi <elias.aebi@student.kit.edu>2018-04-27 10:15:34 +0200
committerJohannes Bucher <johannes.bucher2@student.kit.edu>2019-01-24 17:42:00 +0100
commit9d47a8a8c6d7c2176836f8fe5b88f09d8b17b812 (patch)
treedf5ad20915bdf4893b13b65496a49697afd0c4ee
parent38d82567b020c369a04ec510469df7618436e7b7 (diff)
fix a typo
-rw-r--r--ir/opt/loop2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/opt/loop2.c b/ir/opt/loop2.c
index 31ac51c..d674488 100644
--- a/ir/opt/loop2.c
+++ b/ir/opt/loop2.c
@@ -169,7 +169,7 @@ static void rewire_node(ir_node *const node, ir_node *const header)
++new_arity;
}
}
- ir_node **const in = ALLOCAN(ir_node *, 1);
+ ir_node **const in = ALLOCAN(ir_node *, new_arity);
for (int i = 0, j = 0; i < arity; ++i) {
if (get_irn_link(get_irn_n(header, i))) {
ir_node *const pred = get_irn_n(node, i);