aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2026-02-24 22:13:15 +0100
committerMike Pall <mike>2026-02-24 22:13:15 +0100
commit02e29995581cb568a784a9b996cd5e9139cd0737 (patch)
treec00cf72f630c465b34cda8a3d1fd2ebf48a19090 /src
parent5db4b03aeaf0f72eb817b468461b896466f820fd (diff)
downloadluajit-02e29995581cb568a784a9b996cd5e9139cd0737.tar.gz
luajit-02e29995581cb568a784a9b996cd5e9139cd0737.tar.bz2
luajit-02e29995581cb568a784a9b996cd5e9139cd0737.zip
FFI: Fix constructor index resolution in JIT compiler.
Reported by Vladimir Davydov and Sergey Kaplun. #1441
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 85362ea5..4adfefe6 100644
--- a/src/lj_crecord.c
+++ b/src/lj_crecord.c
@@ -811,6 +811,8 @@ again:
811 } 811 }
812 J->base[0] = lj_ir_kint(J, (int32_t)fct->size); 812 J->base[0] = lj_ir_kint(J, (int32_t)fct->size);
813 return; /* Interpreter will throw for newindex. */ 813 return; /* Interpreter will throw for newindex. */
814 } else if (cd && cd->ctypeid == CTID_CTYPEID) {
815 /* Only resolve constants and metamethods for constructors. */
814 } else if (ctype_isbitfield(fct->info)) { 816 } else if (ctype_isbitfield(fct->info)) {
815 lj_trace_err(J, LJ_TRERR_NYICONV); 817 lj_trace_err(J, LJ_TRERR_NYICONV);
816 } else { 818 } else {