Mercurial > projects > ldc
diff dmd2/mtype.c @ 921:75c53f8f67a4
Apply StaticStructInit changes from [913] to dmd2/
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 03 Feb 2009 18:00:17 +0100 |
parents | eb936607f071 |
children | 5fa3e0ea06e9 |
line wrap: on
line diff
--- a/dmd2/mtype.c Tue Feb 03 08:54:57 2009 +0100 +++ b/dmd2/mtype.c Tue Feb 03 18:00:17 2009 +0100 @@ -5249,14 +5249,12 @@ } Expression *TypeStruct::defaultInit(Loc loc) -{ Symbol *s; - Declaration *d; +{ Declaration *d; #if LOGDEFAULTINIT printf("TypeStruct::defaultInit() '%s'\n", toChars()); #endif - s = sym->toInitializer(); - d = new SymbolDeclaration(sym->loc, s, sym); + d = new StaticStructInitDeclaration(sym->loc, sym); assert(d); d->type = this; return new VarExp(sym->loc, d);