]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
x64: Always extend stack arguments to pointer size.
authorMike Pall <mike>
Fri, 9 Dec 2011 15:00:04 +0000 (16:00 +0100)
committerMike Pall <mike>
Fri, 9 Dec 2011 15:00:04 +0000 (16:00 +0100)
src/lj_asm_x86.h

index 0eca5d5c8812cdbac0c4856d7e6adbde2445725e..c1f0fc1593f63bde0b8d06f36bb8f984ee370b3f 100644 (file)
@@ -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);
     }