mirror of
https://github.com/danog/ir.git
synced 2025-01-22 05:31:32 +01:00
Require temporary register for passing argument through stack
This commit is contained in:
parent
bfbae48e6f
commit
52842a094a
@ -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++;
|
||||
}
|
||||
|
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user