mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Fix symbol name redirection.
This commit is contained in:
parent
3184f17169
commit
279b6ec22e
@ -1762,6 +1762,7 @@ static void cp_decl_multi(CPState *cp)
|
|||||||
if (decl.redir) { /* Add attribute for redirected symbol name. */
|
if (decl.redir) { /* Add attribute for redirected symbol name. */
|
||||||
CType *cta;
|
CType *cta;
|
||||||
CTypeID aid = lj_ctype_new(cp->cts, &cta);
|
CTypeID aid = lj_ctype_new(cp->cts, &cta);
|
||||||
|
ct = ctype_get(cp->cts, id); /* Table may have been reallocated. */
|
||||||
cta->info = CTINFO(CT_ATTRIB, CTATTRIB(CTA_REDIR));
|
cta->info = CTINFO(CT_ATTRIB, CTATTRIB(CTA_REDIR));
|
||||||
cta->sib = ct->sib;
|
cta->sib = ct->sib;
|
||||||
ct->sib = aid;
|
ct->sib = aid;
|
||||||
|
Loading…
Reference in New Issue
Block a user