Fix TargetABI::isPOD() for static arrays of non-PODs

This commit is contained in:
Martin Kinkelin 2018-06-08 17:34:13 +02:00
parent a133ffad56
commit 9b6b256399

View file

@ -224,7 +224,7 @@ bool hasCtor(StructDeclaration *s) {
}
bool TargetABI::isPOD(Type *t, bool excludeStructsWithCtor) {
t = t->toBasetype();
t = t->baseElemOf();
if (t->ty != Tstruct)
return true;
StructDeclaration *sd = static_cast<TypeStruct *>(t)->sym;