mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-29 01:30:05 +02:00
Apply StaticStructInit changes from [913] to dmd2/
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user