mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-12 17:24:09 +00:00
FFI: Correctly propagate alignment when interning nested types.
This commit is contained in:
parent
21cea85d92
commit
76ab3709da
@ -918,7 +918,9 @@ static CTypeID cp_decl_intern(CPState *cp, CPDecl *decl)
|
|||||||
size = (CTSize)xsz;
|
size = (CTSize)xsz;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
info |= (cinfo & (CTF_QUAL|CTF_ALIGN)); /* Inherit qual and align. */
|
if ((cinfo & CTF_ALIGN) > (info & CTF_ALIGN)) /* Find max. align. */
|
||||||
|
info = (info & ~CTF_ALIGN) | (cinfo & CTF_ALIGN);
|
||||||
|
info |= (cinfo & CTF_QUAL); /* Inherit qual. */
|
||||||
} else {
|
} else {
|
||||||
lua_assert(ctype_isvoid(info));
|
lua_assert(ctype_isvoid(info));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user