Mercurial > projects > ddmd
diff dmd/TypeStruct.d @ 178:e3afd1303184
Many small bugs fixed
Made all classes derive from TObject to detect memory leaks (functionality is disabled for now)
Began work on overriding backend memory allocations (to avoid memory leaks)
author | korDen |
---|---|
date | Sun, 17 Oct 2010 07:42:00 +0400 |
parents | af724d3510d7 |
children | b0d41ff5e0df |
line wrap: on
line diff
--- a/dmd/TypeStruct.d Sun Oct 10 10:38:55 2010 +0400 +++ b/dmd/TypeStruct.d Sun Oct 17 07:42:00 2010 +0400 @@ -66,24 +66,10 @@ this(StructDeclaration sym) { + register(); super(TY.Tstruct); this.sym = sym; } -version (DumbClone) { -} else { - final TypeStruct cloneTo(TypeStruct t) - { - super.cloneTo(t); - assert(t.sym is sym); - return t; - } - - TypeStruct clone() - { - assert(this.classinfo == TypeStruct.classinfo); - return cloneTo(new TypeStruct(sym)); - } -} override ulong size(Loc loc) { return sym.size(loc); @@ -416,7 +402,6 @@ return structinit; } - override bool isZeroInit(Loc loc) { return sym.zeroInit;