Mercurial > projects > ldc
diff gen/arrays.h @ 36:c0967c4b2a74 trunk
[svn r40] Cleaned up some of the array routines to use gep/load/store instead of memcpy/memset.
Resizing arrays did not allocate enough memory for types bigger than 1 byte.
author | lindquist |
---|---|
date | Tue, 09 Oct 2007 07:51:13 +0200 |
parents | 4648206ca213 |
children | 77cdca8c210f |
line wrap: on
line diff
--- a/gen/arrays.h Tue Oct 09 06:21:30 2007 +0200 +++ b/gen/arrays.h Tue Oct 09 07:51:13 2007 +0200 @@ -11,7 +11,7 @@ void LLVM_DtoArrayInit(llvm::Value* l, llvm::Value* r); void LLVM_DtoArrayAssign(llvm::Value* l, llvm::Value* r); void LLVM_DtoSetArray(llvm::Value* arr, llvm::Value* dim, llvm::Value* ptr); -llvm::Value* LLVM_DtoNullArray(llvm::Value* v); +void LLVM_DtoNullArray(llvm::Value* v); void LLVM_DtoNewDynArray(llvm::Value* dst, llvm::Value* dim, const llvm::Type* ty); void LLVM_DtoResizeDynArray(llvm::Value* arr, llvm::Value* sz);