Mercurial > projects > ddmd
diff dmd/Expression.d @ 2:7427ded8caf7
Removed unreferenced modules
First step at fixing GC issues - now calling GC.malloc instead of malloc (ditto calloc and realloc), get rid of free
author | korDen |
---|---|
date | Sun, 25 Oct 2009 03:20:59 +0300 |
parents | 10317f0c89a5 |
children | d706d958e4e8 |
line wrap: on
line diff
--- a/dmd/Expression.d Sat Oct 24 17:25:59 2009 +0400 +++ b/dmd/Expression.d Sun Oct 25 03:20:59 2009 +0300 @@ -44,6 +44,8 @@ import dmd.backend.elem; import dmd.backend.dt_t; +import dmd.Memory; + import std.stdio : writef; import core.stdc.stdlib : malloc; @@ -192,7 +194,7 @@ assert(0); } auto size = this.classinfo.init.length; - auto ptr = malloc(size); + auto ptr = GC.malloc(size); memcpy(ptr, cast(void*)this, size); return cast(Expression)ptr;