mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-10-01 09:39:24 +02:00
Fix alignment of structs containing real
This commit is contained in:
+4
-1
@@ -226,10 +226,13 @@ void AggregateDeclaration::addField(Scope *sc, VarDeclaration *v)
|
|||||||
if (!isUnionDeclaration())
|
if (!isUnionDeclaration())
|
||||||
sc->offset = ofs;
|
sc->offset = ofs;
|
||||||
#endif
|
#endif
|
||||||
|
#if !IN_LLVM
|
||||||
if (global.params.is64bit && sc->structalign == 8 && memalignsize == 16)
|
if (global.params.is64bit && sc->structalign == 8 && memalignsize == 16)
|
||||||
/* Not sure how to handle this */
|
/* Not sure how to handle this */
|
||||||
;
|
;
|
||||||
else if (sc->structalign < memalignsize)
|
else
|
||||||
|
#endif
|
||||||
|
if (sc->structalign < memalignsize)
|
||||||
memalignsize = sc->structalign;
|
memalignsize = sc->structalign;
|
||||||
if (alignsize < memalignsize)
|
if (alignsize < memalignsize)
|
||||||
alignsize = memalignsize;
|
alignsize = memalignsize;
|
||||||
|
|||||||
Reference in New Issue
Block a user