aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lj_crecord.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_crecord.c b/src/lj_crecord.c
index 4f27cffe..4be36eca 100644
--- a/src/lj_crecord.c
+++ b/src/lj_crecord.c
@@ -895,6 +895,8 @@ again:
895 } 895 }
896 J->base[0] = lj_ir_kint(J, (int32_t)fct->size); 896 J->base[0] = lj_ir_kint(J, (int32_t)fct->size);
897 return; /* Interpreter will throw for newindex. */ 897 return; /* Interpreter will throw for newindex. */
898 } else if (cd && cd->ctypeid == CTID_CTYPEID) {
899 /* Only resolve constants and metamethods for constructors. */
898 } else if (ctype_isbitfield(fct->info)) { 900 } else if (ctype_isbitfield(fct->info)) {
899 if (ofs) 901 if (ofs)
900 ptr = emitir(IRT(IR_ADD, IRT_PTR), ptr, lj_ir_kintp(J, ofs)); 902 ptr = emitir(IRT(IR_ADD, IRT_PTR), ptr, lj_ir_kintp(J, ofs));