Mercurial > projects > ldc
diff gen/toir.c @ 85:f869c636a113 trunk
[svn r89] Fixed a bunch of problems with template instance across multiple modules.
Fixed initialization of function local static variables, with a non const initializer (now happens on first call using a global to make sure it only happens once.)
author | lindquist |
---|---|
date | Fri, 02 Nov 2007 06:32:32 +0100 |
parents | 339422268de1 |
children |
line wrap: on
line diff
--- a/gen/toir.c Fri Nov 02 02:27:41 2007 +0100 +++ b/gen/toir.c Fri Nov 02 06:32:32 2007 +0100 @@ -64,7 +64,8 @@ //allocainst->setAlignment(vd->type->alignsize()); // TODO vd->llvmValue = allocainst; } - DtoInitializer(vd->init); + elem* ie = DtoInitializer(vd->init); + delete ie; } } // struct declaration