From 2591b4524ab2e27702bfc1f41b87348aab66e802 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Fri, 9 Dec 2011 16:00:04 +0100 Subject: [PATCH] x64: Always extend stack arguments to pointer size. --- src/lj_asm_x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h index 0eca5d5c..c1f0fc15 100644 --- a/src/lj_asm_x86.h +++ b/src/lj_asm_x86.h @@ -496,7 +496,7 @@ static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args) emit_movmroi(as, RID_ESP, ofs, ir->i); } else { r = ra_alloc1(as, ref, RSET_GPR); - emit_movtomro(as, REX_64IR(ir, r), RID_ESP, ofs); + emit_movtomro(as, REX_64 + r, RID_ESP, ofs); } ofs += sizeof(intptr_t); }