Commit f98bd084 authored by Sebastian Hack's avatar Sebastian Hack
Browse files

Fixed a bug in CopyKeep

parent 868c8b47
...@@ -531,7 +531,7 @@ ir_node *be_new_CopyKeep(const arch_register_class_t *cls, ir_graph *irg, ir_nod ...@@ -531,7 +531,7 @@ ir_node *be_new_CopyKeep(const arch_register_class_t *cls, ir_graph *irg, ir_nod
in[0] = src; in[0] = src;
memcpy(&in[1], in_keep, n * sizeof(in[0])); memcpy(&in[1], in_keep, n * sizeof(in[0]));
irn = new_ir_node(NULL, irg, bl, op_be_CopyKeep, mode, n + 1, in); irn = new_ir_node(NULL, irg, bl, op_be_CopyKeep, mode, n + 1, in);
init_node_attr(irn, n); init_node_attr(irn, n + 1);
be_node_set_reg_class(irn, OUT_POS(0), cls); be_node_set_reg_class(irn, OUT_POS(0), cls);
be_node_set_reg_class(irn, 0, cls); be_node_set_reg_class(irn, 0, cls);
......
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