diff options
author | Mike Pall <mike> | 2016-06-05 13:07:43 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2016-06-05 13:07:43 +0200 |
commit | f5983437a6b08c140bdeb2fc15fa30d7f3b0daad (patch) | |
tree | 05025c055a8a2a743ee3a20cc4fabcce248b68ad /src | |
parent | a88dc57995a55d1b9a04db4822caf46acc840ca0 (diff) | |
download | luajit-f5983437a6b08c140bdeb2fc15fa30d7f3b0daad.tar.gz luajit-f5983437a6b08c140bdeb2fc15fa30d7f3b0daad.tar.bz2 luajit-f5983437a6b08c140bdeb2fc15fa30d7f3b0daad.zip |
x64/LJ_GC64: Fix code generation for IR_KNULL call argument.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_asm_x86.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h index 35f48727..50784daa 100644 --- a/src/lj_asm_x86.h +++ b/src/lj_asm_x86.h | |||
@@ -599,7 +599,7 @@ static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args) | |||
599 | if (r) { /* Argument is in a register. */ | 599 | if (r) { /* Argument is in a register. */ |
600 | if (r < RID_MAX_GPR && ref < ASMREF_TMP1) { | 600 | if (r < RID_MAX_GPR && ref < ASMREF_TMP1) { |
601 | #if LJ_64 | 601 | #if LJ_64 |
602 | if (LJ_GC64 ? ir->o != IR_KINT : ir->o == IR_KINT64) | 602 | if (LJ_GC64 ? !(ir->o == IR_KINT || ir->o == IR_KNULL) : ir->o == IR_KINT64) |
603 | emit_loadu64(as, r, ir_k64(ir)->u64); | 603 | emit_loadu64(as, r, ir_k64(ir)->u64); |
604 | else | 604 | else |
605 | #endif | 605 | #endif |