diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_crecord.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lj_crecord.c b/src/lj_crecord.c index 5e91737c..99303310 100644 --- a/src/lj_crecord.c +++ b/src/lj_crecord.c | |||
@@ -61,8 +61,7 @@ static CTypeID crec_constructor(jit_State *J, GCcdata *cd, TRef tr) | |||
61 | CTypeID id; | 61 | CTypeID id; |
62 | lua_assert(tref_iscdata(tr) && cd->ctypeid == CTID_CTYPEID); | 62 | lua_assert(tref_iscdata(tr) && cd->ctypeid == CTID_CTYPEID); |
63 | id = *(CTypeID *)cdataptr(cd); | 63 | id = *(CTypeID *)cdataptr(cd); |
64 | tr = emitir(IRT(IR_ADD, IRT_PTR), tr, lj_ir_kintp(J, sizeof(GCcdata))); | 64 | tr = emitir(IRT(IR_FLOAD, IRT_INT), tr, IRFL_CDATA_INT); |
65 | tr = emitir(IRT(IR_XLOAD, IRT_INT), tr, 0); | ||
66 | emitir(IRTG(IR_EQ, IRT_INT), tr, lj_ir_kint(J, (int32_t)id)); | 65 | emitir(IRTG(IR_EQ, IRT_INT), tr, lj_ir_kint(J, (int32_t)id)); |
67 | return id; | 66 | return id; |
68 | } | 67 | } |