]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
x64/LJ_GC64: Fix (currently unused) integer stores in asm_tvptr().
authorMike Pall <mike>
Mon, 20 Feb 2017 01:42:54 +0000 (02:42 +0100)
committerMike Pall <mike>
Mon, 20 Feb 2017 01:42:54 +0000 (02:42 +0100)
src/lj_asm_x86.h

index b6754cfaa65b2ad14d36e7f903513ec2245389c5..fceb18775861f3323149c3b88a7fb7dcb5ee65ef 100644 (file)
@@ -1065,7 +1065,8 @@ static void asm_tvptr(ASMState *as, Reg dest, IRRef ref)
        emit_u32(as, irt_toitype(ir->t) << 15);
        emit_rmro(as, XO_ARITHi, XOg_OR, dest, 4);
       } else {
-       emit_movmroi(as, dest, 4, (irt_toitype(ir->t) << 15) | 0x7fff);
+       /* Currently, no caller passes integers that might end up here. */
+       emit_movmroi(as, dest, 4, (irt_toitype(ir->t) << 15));
       }
       emit_movtomro(as, REX_64IR(ir, src), dest, 0);
     }