mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
FFI: Fix x86 code generation for ffi.string().
This commit is contained in:
parent
30cc4d3bba
commit
a127eaf8d2
@ -4256,7 +4256,7 @@ static void asm_setup_regsp(ASMState *as, GCtrace *T)
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
/* C calls evict all scratch regs and return results in RID_RET. */
|
/* C calls evict all scratch regs and return results in RID_RET. */
|
||||||
case IR_SNEW: case IR_NEWREF:
|
case IR_SNEW: case IR_XSNEW: case IR_NEWREF:
|
||||||
#if !LJ_64
|
#if !LJ_64
|
||||||
if (as->evenspill < 3) /* lj_str_new and lj_tab_newkey need 3 args. */
|
if (as->evenspill < 3) /* lj_str_new and lj_tab_newkey need 3 args. */
|
||||||
as->evenspill = 3;
|
as->evenspill = 3;
|
||||||
|
Loading…
Reference in New Issue
Block a user