mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-10 12:59:21 +03:00
Fix TargetABI::isPOD() for static arrays of non-PODs
This commit is contained in:
parent
a133ffad56
commit
9b6b256399
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue