int arity = get_irn_arity(block);
/* no predecessors: use unknown value */
if (arity == 0 && block == get_irg_start_block(get_irn_irg(block))) {
- ir_graph *irg = get_irn_irg(block);
if (default_initialize_local_variable != NULL) {
ir_node *rem = get_r_cur_block(irg);
set_r_cur_block(irg, block);
res->attr.block.in_cg = NULL;
res->attr.block.cg_backedge = NULL;
res->attr.block.extblk = NULL;
- res->attr.block.region = NULL;
res->attr.block.entity = NULL;
set_Block_block_visited(res, 0);
{
ir_node *in[anchor_last];
ir_node *res;
+ size_t i;
memset(in, 0, sizeof(in));
res = new_ir_node(NULL, irg, NULL, op_Anchor, mode_ANY, anchor_last, in);
res->attr.anchor.irg.irg = irg;
* get_Block_irg for anchor */
res->in[0] = res;
+ /* we can't have NULL inputs so reference ourselfes for now */
+ for (i = 0; i < (size_t)anchor_last; ++i) {
+ set_irn_n(res, i, res);
+ }
+
return res;
}