[svn r47] fixed a problem with gdc 4.1

This commit is contained in:
Tomas Lindquist Olsen
2007-10-19 15:26:09 +02:00
parent 817c05be2b
commit 7a9434e3b6
2 changed files with 5 additions and 4 deletions

View File

@@ -146,10 +146,10 @@ void LLVM_DtoArrayInit(llvm::Value* ptr, llvm::Value* dim, llvm::Value* val)
{
const llvm::Type* t = ptr->getType()->getContainedType(0);
std::vector<llvm::Value*> args(3,NULL);
args[0] = ptr;
args[1] = dim;
args[2] = val;
std::vector<llvm::Value*> args;
args.push_back(ptr);
args.push_back(dim);
args.push_back(val);
const char* funcname = NULL;

View File

@@ -9,6 +9,7 @@
#include "llvm/GlobalVariable.h"
#include "llvm/Function.h"
#include "llvm/Module.h"
#include "llvm/Value.h"
#include "llvm/Target/TargetData.h"