mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-25 09:03:14 +01:00
Remove DMDV1 and DMDV2.
This commit is contained in:
@@ -253,12 +253,10 @@ std::vector<LLConstant*> DtoStructLiteralValues(const StructDeclaration* sd,
|
||||
|
||||
// update offsets
|
||||
lastoffset = os;
|
||||
#if DMDV2
|
||||
// sometimes size of the initializer is less than size of the variable,
|
||||
// so make sure that lastsize is correct
|
||||
if (inits[i]->getType()->isSized())
|
||||
sz = ceil(gDataLayout->getTypeSizeInBits(init->getType()) / 8.0);
|
||||
#endif
|
||||
lastsize = sz;
|
||||
|
||||
// go to next explicit init
|
||||
|
||||
Reference in New Issue
Block a user