mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-13 23:51:49 +01:00
Respect type alignment when choosing padding fields.
Fixes ABI mismatch when e.g. padding a 28 byte union from a 20 byte member, where previously, an i64 would be emitted, yielding a 32 byte LLVM struct size on ulong.alignof == 8 platforms. Test case will follow on the 2.064 branch.
This commit is contained in:
@@ -37,7 +37,6 @@
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
extern LLConstant* get_default_initializer(VarDeclaration* vd, Initializer* init);
|
||||
extern size_t add_zeros(std::vector<llvm::Constant*>& constants, size_t diff);
|
||||
|
||||
extern LLConstant* DtoDefineClassInfo(ClassDeclaration* cd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user