Commit d44948c7 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Syncs must be created with an ARRF in array in new_ir_node().

[r19306]
parent f9893427
......@@ -154,8 +154,8 @@ new_ir_node(dbg_info *db, ir_graph *irg, ir_node *block, ir_op *op, ir_mode *mod
if (arity < 0) {
res->in = NEW_ARR_F(ir_node *, 1); /* 1: space for block */
} else {
/* not nice but necessary: End must always have a flexible array */
if (op == op_End)
/* not nice but necessary: End and Sync must always have a flexible array */
if (op == op_End || op == op_Sync)
res->in = NEW_ARR_F(ir_node *, (arity+1));
else
res->in = NEW_ARR_D(ir_node *, irg->obst, (arity+1));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment