aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lj_crecord.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_crecord.c b/src/lj_crecord.c
index 8d2248a4..96b62efe 100644
--- a/src/lj_crecord.c
+++ b/src/lj_crecord.c
@@ -1031,7 +1031,7 @@ void LJ_FASTCALL recff_clib_index(jit_State *J, RecordFFData *rd)
1031 CType *ct; 1031 CType *ct;
1032 CTypeID id = lj_ctype_getname(cts, &ct, name, CLNS_INDEX); 1032 CTypeID id = lj_ctype_getname(cts, &ct, name, CLNS_INDEX);
1033 cTValue *tv = lj_tab_getstr(cl->cache, name); 1033 cTValue *tv = lj_tab_getstr(cl->cache, name);
1034 if (id && tv && tviscdata(tv)) { 1034 if (id && tv && !tvisnil(tv)) {
1035 /* Specialize to the symbol name and make the result a constant. */ 1035 /* Specialize to the symbol name and make the result a constant. */
1036 emitir(IRTG(IR_EQ, IRT_STR), J->base[1], lj_ir_kstr(J, name)); 1036 emitir(IRTG(IR_EQ, IRT_STR), J->base[1], lj_ir_kstr(J, name));
1037 if (ctype_isconstval(ct->info)) { 1037 if (ctype_isconstval(ct->info)) {