Be a little less overzealous with arrays of void-initialized typedefs;

initialize `new VoidTD[][](2)` and `new VoidTD[][][](2, 3)` (but not
`new VoidTD[2][3]`, which is a dynamic array of static arrays of
void-initialized typedefs).
This commit is contained in:
Frits van Bommel
2009-06-24 18:01:02 +02:00
parent c6750b34b7
commit 8e8837737a

View File

@@ -399,9 +399,9 @@ LLConstant* DtoConstSlice(LLConstant* dim, LLConstant* ptr)
//////////////////////////////////////////////////////////////////////////////////////////
static bool isInitialized(Type* et) {
// Strip array types from element type
// Strip static array types from element type
Type* bt = et->toBasetype();
while (bt->ty == Tsarray || bt->ty == Tarray) {
while (bt->ty == Tsarray) {
et = bt->nextOf();
bt = et->toBasetype();
}