Apply StaticStructInit changes from [913] to dmd2/

This commit is contained in:
Christian Kamm
2009-02-03 18:00:17 +01:00
parent dc5944df99
commit 8726eefefa
5 changed files with 24 additions and 20 deletions

View File

@@ -5249,14 +5249,12 @@ unsigned TypeStruct::memalign(unsigned salign)
}
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);