aboutsummaryrefslogtreecommitdiff
path: root/src/lj_ir.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_ir.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lj_ir.h b/src/lj_ir.h
index a801d5d0..6116f7e5 100644
--- a/src/lj_ir.h
+++ b/src/lj_ir.h
@@ -413,11 +413,12 @@ static LJ_AINLINE IRType itype2irt(const TValue *tv)
413 413
414static LJ_AINLINE uint32_t irt_toitype_(IRType t) 414static LJ_AINLINE uint32_t irt_toitype_(IRType t)
415{ 415{
416 lua_assert(!LJ_64 || LJ_GC64 || t != IRT_LIGHTUD); 416 lj_assertX(!LJ_64 || LJ_GC64 || t != IRT_LIGHTUD,
417 "no plain type tag for lightuserdata");
417 if (LJ_DUALNUM && t > IRT_NUM) { 418 if (LJ_DUALNUM && t > IRT_NUM) {
418 return LJ_TISNUM; 419 return LJ_TISNUM;
419 } else { 420 } else {
420 lua_assert(t <= IRT_NUM); 421 lj_assertX(t <= IRT_NUM, "no plain type tag for IR type %d", t);
421 return ~(uint32_t)t; 422 return ~(uint32_t)t;
422 } 423 }
423} 424}