diff options
author | Mike Pall <mike> | 2011-10-11 11:51:48 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-10-11 11:51:48 +0200 |
commit | 4a144625c90db7497dd3fce79b97be39ef0af773 (patch) | |
tree | 67b6a98ccda3a0f1d45c3cdbd9a9476eb8d660b2 /src | |
parent | f34ac81e3a45fd730dc80edd2f09d1bdd4184ea1 (diff) | |
download | luajit-4a144625c90db7497dd3fce79b97be39ef0af773.tar.gz luajit-4a144625c90db7497dd3fce79b97be39ef0af773.tar.bz2 luajit-4a144625c90db7497dd3fce79b97be39ef0af773.zip |
FFI: Fix recording of const/enum lookups in namespaces.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_crecord.c | 2 |
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)) { |