Mercurial > projects > ldc
diff gen/toir.cpp @ 932:5e3bb0c3ea8b
Fixed dstress/run/a/array_initialization_17_A.d regression. default initialized static array elements in a constant static array initializer was getting incorrect values.
Fixed minor version problem in mini/naked_asm4.d test case.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 03 Feb 2009 23:48:47 +0100 |
parents | 545f54041d91 |
children | 2ebac4750adb |
line wrap: on
line diff
--- a/gen/toir.cpp Tue Feb 03 21:46:54 2009 +0100 +++ b/gen/toir.cpp Tue Feb 03 23:48:47 2009 +0100 @@ -1632,6 +1632,8 @@ DVarValue tmpvar(newtype, mem); // default initialize + // FIXME: should this use DtoConstExpInit instead ? + // or is static arrays the only troublemaker? Expression* exp = newtype->defaultInit(loc); DValue* iv = exp->toElem(gIR); DtoAssign(loc, &tmpvar, iv);