diff options
author | Mike Pall <mike> | 2010-12-28 19:09:01 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-12-28 19:09:01 +0100 |
commit | d176433e3260eaba55f7211af23250b68a25fdda (patch) | |
tree | cc4919d95483bf262959463512059a8646613e95 /src/lj_ffrecord.c | |
parent | a70fb9416a535146dc60b680313c8ef7fa7daaf6 (diff) | |
download | luajit-d176433e3260eaba55f7211af23250b68a25fdda.tar.gz luajit-d176433e3260eaba55f7211af23250b68a25fdda.tar.bz2 luajit-d176433e3260eaba55f7211af23250b68a25fdda.zip |
FFI: Catch various NYI cases while recording.
Diffstat (limited to 'src/lj_ffrecord.c')
-rw-r--r-- | src/lj_ffrecord.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lj_ffrecord.c b/src/lj_ffrecord.c index b7ee06cd..ca9f6ceb 100644 --- a/src/lj_ffrecord.c +++ b/src/lj_ffrecord.c | |||
@@ -266,6 +266,10 @@ static void LJ_FASTCALL recff_tonumber(jit_State *J, RecordFFData *rd) | |||
266 | recff_nyiu(J); /* Would need an inverted STRTO for this case. */ | 266 | recff_nyiu(J); /* Would need an inverted STRTO for this case. */ |
267 | tr = emitir(IRTG(IR_STRTO, IRT_NUM), tr, 0); | 267 | tr = emitir(IRTG(IR_STRTO, IRT_NUM), tr, 0); |
268 | } | 268 | } |
269 | #if LJ_HASFFI | ||
270 | } else if (tref_iscdata(tr)) { | ||
271 | recff_nyiu(J); | ||
272 | #endif | ||
269 | } else { | 273 | } else { |
270 | tr = TREF_NIL; | 274 | tr = TREF_NIL; |
271 | } | 275 | } |