Mercurial > projects > ldc
comparison tango/lib/compiler/llvmdc/lifetime.d @ 212:4c2689d57ba4 trunk
[svn r228] Fixed: when new'ing basic types, the storage was not default initialized.
Fixed: the tango/lib/compiler/llvmdc/llvmdc.mak makefile was a bit incorrect.
Changed: the basic gc is now the default.
Changed: renamed a few temporary names in the LLVM IR output.
author | lindquist |
---|---|
date | Tue, 27 May 2008 22:14:24 +0200 |
parents | f66219e0d530 |
children | a168a2c3ea48 |
comparison
equal
deleted
inserted
replaced
211:f66219e0d530 | 212:4c2689d57ba4 |
---|---|
204 extern (C) void* _d_newarrayT(TypeInfo ti, size_t length) | 204 extern (C) void* _d_newarrayT(TypeInfo ti, size_t length) |
205 { | 205 { |
206 void* p; | 206 void* p; |
207 auto size = ti.next.tsize(); // array element size | 207 auto size = ti.next.tsize(); // array element size |
208 | 208 |
209 debug(PRINTF) printf("_d_newarrayT(length = x%x, size = %d)\n", length, size); | 209 debug(PRINTF) printf("_d_newarrayT(length = %u, size = %d)\n", length, size); |
210 if (length == 0 || size == 0) | 210 if (length == 0 || size == 0) |
211 return null; | 211 return null; |
212 | 212 |
213 version (D_InlineAsm_X86) | 213 version (D_InlineAsm_X86) |
214 { | 214 { |