mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-22 20:11:50 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user