瀏覽代碼

x64: Always extend stack arguments to pointer size.

Mike Pall 14 年之前
父節點
當前提交
2591b4524a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lj_asm_x86.h

+ 1 - 1
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);
     }