Mercurial > projects > ldc
comparison gen/arrays.c @ 43:eb7bf7b7972e trunk
[svn r47] fixed a problem with gdc 4.1
author | lindquist |
---|---|
date | Fri, 19 Oct 2007 15:26:09 +0200 |
parents | 8b0e809563df |
children | 4d171915a77b |
comparison
equal
deleted
inserted
replaced
42:0b9b286b67b6 | 43:eb7bf7b7972e |
---|---|
144 | 144 |
145 void LLVM_DtoArrayInit(llvm::Value* ptr, llvm::Value* dim, llvm::Value* val) | 145 void LLVM_DtoArrayInit(llvm::Value* ptr, llvm::Value* dim, llvm::Value* val) |
146 { | 146 { |
147 const llvm::Type* t = ptr->getType()->getContainedType(0); | 147 const llvm::Type* t = ptr->getType()->getContainedType(0); |
148 | 148 |
149 std::vector<llvm::Value*> args(3,NULL); | 149 std::vector<llvm::Value*> args; |
150 args[0] = ptr; | 150 args.push_back(ptr); |
151 args[1] = dim; | 151 args.push_back(dim); |
152 args[2] = val; | 152 args.push_back(val); |
153 | 153 |
154 const char* funcname = NULL; | 154 const char* funcname = NULL; |
155 | 155 |
156 if (llvm::isa<llvm::PointerType>(t)) { | 156 if (llvm::isa<llvm::PointerType>(t)) { |
157 funcname = "_d_array_init_pointer"; | 157 funcname = "_d_array_init_pointer"; |