Mercurial > projects > ldc
diff gen/toobj.c @ 69:2b5a2eaa88be trunk
[svn r73] Identity expression for dynamic array and null was broken.
author | lindquist |
---|---|
date | Sun, 28 Oct 2007 04:23:38 +0100 |
parents | c4b3f5d2cd9b |
children | d7e764e62462 |
line wrap: on
line diff
--- a/gen/toobj.c Sun Oct 28 03:14:29 2007 +0100 +++ b/gen/toobj.c Sun Oct 28 04:23:38 2007 +0100 @@ -547,7 +547,7 @@ // array single value init else if (llvm::isa<llvm::ArrayType>(_type)) { - _init = LLVM_DtoConstantStaticArray(_type, _init); + _init = LLVM_DtoConstStaticArray(_type, _init); } else { Logger::cout() << "Unexpected initializer type: " << *_type << '\n';