Commit 483553b4 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

sparc: Use pn_sparc_Call_first_result instead of the (now wrong) magic number 1.

parent 1025ebdc
......@@ -2697,7 +2697,7 @@ static ir_node *gen_Proj_Proj_Call(ir_node *node)
= sparc_decide_calling_convention(function_type, NULL);
const reg_or_stackslot_t *res = &cconv->results[pn];
ir_mode *mode = get_irn_mode(node);
unsigned new_pn = 1 + res->reg_offset;
unsigned new_pn = pn_sparc_Call_first_result + res->reg_offset;
assert(res->req0 != NULL && res->req1 == NULL);
if (mode_needs_gp_reg(mode)) {
......
Markdown is supported
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