mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Fix compilation of reference field access.
This commit is contained in:
parent
a6c34b85f7
commit
f948fe0c27
@ -848,8 +848,11 @@ again:
|
|||||||
|
|
||||||
/* Resolve reference for field. */
|
/* Resolve reference for field. */
|
||||||
ct = ctype_get(cts, sid);
|
ct = ctype_get(cts, sid);
|
||||||
if (ctype_isref(ct->info))
|
if (ctype_isref(ct->info)) {
|
||||||
ptr = emitir(IRT(IR_XLOAD, IRT_PTR), ptr, 0);
|
ptr = emitir(IRT(IR_XLOAD, IRT_PTR), ptr, 0);
|
||||||
|
sid = ctype_cid(ct->info);
|
||||||
|
ct = ctype_get(cts, sid);
|
||||||
|
}
|
||||||
|
|
||||||
while (ctype_isattrib(ct->info))
|
while (ctype_isattrib(ct->info))
|
||||||
ct = ctype_child(cts, ct); /* Skip attributes. */
|
ct = ctype_child(cts, ct); /* Skip attributes. */
|
||||||
|
Loading…
Reference in New Issue
Block a user