changeset 1515:391fdb36f2aa

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).
author Frits van Bommel <fvbommel wxs.nl>
date Wed, 24 Jun 2009 18:01:02 +0200
parents 7a528017b4c6
children 0f08b145b878
files gen/arrays.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gen/arrays.cpp	Wed Jun 24 17:14:50 2009 +0200
+++ b/gen/arrays.cpp	Wed Jun 24 18:01:02 2009 +0200
@@ -399,9 +399,9 @@
 
 //////////////////////////////////////////////////////////////////////////////////////////
 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();
     }