From: Christoph Mallon Date: Wed, 16 Apr 2008 18:10:17 +0000 (+0000) Subject: Syncs must be created with an ARRF in array in new_ir_node(). X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d44948c7bf953b1929f6f8e4d51330e5e2ab29c0;p=libfirm Syncs must be created with an ARRF in array in new_ir_node(). [r19306] --- diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 43b51592f..38c962f16 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -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));