mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Add workaround for lj_meta_tset() newkey inconsistency.
This commit is contained in:
parent
4117a61620
commit
4dca589af0
@ -1021,7 +1021,8 @@ TRef lj_record_idx(jit_State *J, RecordIndex *ix)
|
|||||||
xref = rec_idx_key(J, ix);
|
xref = rec_idx_key(J, ix);
|
||||||
xrefop = IR(tref_ref(xref))->o;
|
xrefop = IR(tref_ref(xref))->o;
|
||||||
loadop = xrefop == IR_AREF ? IR_ALOAD : IR_HLOAD;
|
loadop = xrefop == IR_AREF ? IR_ALOAD : IR_HLOAD;
|
||||||
oldv = ix->oldv;
|
/* NYI: workaround until lj_meta_tset() inconsistency is solved. */
|
||||||
|
oldv = xrefop == IR_KKPTR ? (cTValue *)ir_kptr(IR(tref_ref(xref))) : ix->oldv;
|
||||||
|
|
||||||
if (ix->val == 0) { /* Indexed load */
|
if (ix->val == 0) { /* Indexed load */
|
||||||
IRType t = itype2irt(oldv);
|
IRType t = itype2irt(oldv);
|
||||||
|
Loading…
Reference in New Issue
Block a user