Commit 77af9a99 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

It is not sensible to query any other than the first output register...

It is not sensible to query any other than the first output register requirement of a non-mode_T node.

[r22895]
parent 4c875e72
......@@ -1106,6 +1106,7 @@ be_node_get_irn_reg_req(const ir_node *irn, int pos)
if (get_irn_mode(irn) == mode_T)
return arch_no_register_req;
assert(pos == -1);
out_pos = redir_proj((const ir_node **)&irn);
assert(is_be_node(irn));
return get_out_reg_req(irn, out_pos);
......
......@@ -4380,7 +4380,7 @@ static ir_node *gen_Proj_be_Call(ir_node *node)
} else if (proj == pn_be_Call_M_regular) {
proj = pn_ia32_Call_M;
} else {
arch_register_req_t const *const req = arch_get_register_req(node, BE_OUT_POS(proj));
arch_register_req_t const *const req = arch_get_register_req(node, -1);
int const n_outs = get_ia32_n_res(new_call);
int i;
......
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