Commit 7353f84f authored by Matthias Braun's avatar Matthias Braun
Browse files

be: fix phi attribute copy

parent 49d1fbdd
......@@ -70,7 +70,10 @@ static void new_phi_copy_attr(ir_graph *irg, const ir_node *old_node,
backend_info_t *old_info = be_get_info(old_node);
backend_info_t *new_info = be_get_info(new_node);
*new_info = *old_info;
new_info->in_reqs = old_info->in_reqs;
size_t n_outs = arch_get_irn_n_outs(old_node);
memcpy(new_info->out_infos, old_info->out_infos,
n_outs * sizeof(old_info->out_infos[0]));
old_phi_copy_attr(irg, old_node, new_node);
}
......
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