From 32fa68d3e88426d0230c753820ef79bc139b309e Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 14 Nov 2012 21:54:17 +0100 Subject: [PATCH] Fix assertion. --- src/lj_asm_x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h index 1222284d..241da5a1 100644 --- a/src/lj_asm_x86.h +++ b/src/lj_asm_x86.h @@ -2084,7 +2084,7 @@ static void asm_comp(ASMState *as, IRIns *ir, uint32_t cc) Reg r64 = REX_64IR(ir, 0); int32_t imm = 0; lua_assert(irt_is64(ir->t) || irt_isint(ir->t) || - irt_isu32(ir->t) || irt_isaddr(ir->t)); + irt_isu32(ir->t) || irt_isaddr(ir->t) || irt_isu8(ir->t)); /* Swap constants (only for ABC) and fusable loads to the right. */ if (irref_isk(lref) || (!irref_isk(rref) && opisfusableload(leftop))) { if ((cc & 0xc) == 0xc) cc ^= 0x53; /* L <-> G, LE <-> GE */ -- 2.11.4.GIT