mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Fix recording of const/enum lookups in namespaces.
This commit is contained in:
parent
f34ac81e3a
commit
4a144625c9
@ -1031,7 +1031,7 @@ void LJ_FASTCALL recff_clib_index(jit_State *J, RecordFFData *rd)
|
||||
CType *ct;
|
||||
CTypeID id = lj_ctype_getname(cts, &ct, name, CLNS_INDEX);
|
||||
cTValue *tv = lj_tab_getstr(cl->cache, name);
|
||||
if (id && tv && tviscdata(tv)) {
|
||||
if (id && tv && !tvisnil(tv)) {
|
||||
/* Specialize to the symbol name and make the result a constant. */
|
||||
emitir(IRTG(IR_EQ, IRT_STR), J->base[1], lj_ir_kstr(J, name));
|
||||
if (ctype_isconstval(ct->info)) {
|
||||
|
Loading…
Reference in New Issue
Block a user