summaryrefslogtreecommitdiff
path: root/src/lj_asm.c
diff options
context:
space:
mode:
authorMike Pall <mike>2011-04-29 19:40:50 +0200
committerMike Pall <mike>2011-04-29 19:40:50 +0200
commitc77ca54564e63b7ac20a570eee84c57142d6960a (patch)
tree118392f8d4cd6ef783a7dd78f7894b8abe9309f5 /src/lj_asm.c
parenteb7b452d5393993dc568683b05cbb7b3c4f4f5d0 (diff)
downloadluajit-c77ca54564e63b7ac20a570eee84c57142d6960a.tar.gz
luajit-c77ca54564e63b7ac20a570eee84c57142d6960a.tar.bz2
luajit-c77ca54564e63b7ac20a570eee84c57142d6960a.zip
FFI: Compile C function calls with 64 bit args/results in 32 bit mode.
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r--src/lj_asm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c
index d5e74185..46142f5c 100644
--- a/src/lj_asm.c
+++ b/src/lj_asm.c
@@ -3346,6 +3346,7 @@ static void asm_hiop(ASMState *as, IRIns *ir)
3346 break; 3346 break;
3347 } 3347 }
3348 case IR_CALLN: 3348 case IR_CALLN:
3349 case IR_CALLXS:
3349 ra_destreg(as, ir, RID_RETHI); 3350 ra_destreg(as, ir, RID_RETHI);
3350 if (!uselo) 3351 if (!uselo)
3351 ra_allocref(as, ir->op1, RID2RSET(RID_RET)); /* Mark call as used. */ 3352 ra_allocref(as, ir->op1, RID2RSET(RID_RET)); /* Mark call as used. */