Require temporary register for passing argument through stack

This commit is contained in:
Dmitry Stogov 2022-12-12 18:14:31 +03:00
parent bfbae48e6f
commit 52842a094a
2 changed files with 4 additions and 0 deletions

View File

@ -286,6 +286,8 @@ static bool ir_call_needs_tmp_int_reg(ir_ctx *ctx, ir_insn *insn)
if (int_param > 0) {
return 1; /* for swap */
}
} else {
return 1; /* for mem -> stack copy */
}
int_param++;
}

View File

@ -561,6 +561,8 @@ static bool ir_call_needs_tmp_int_reg(ir_ctx *ctx, ir_insn *insn)
if (int_param > 0) {
return 1; /* for swap */
}
} else {
return 1; /* for mem -> stack copy */
}
}
int_param++;