Follow LLVM API change.

This commit is contained in:
Andreas Wendleder
2011-06-23 18:39:58 +02:00
committed by Matt Pharr
parent 39542f420a
commit f39d31174e
2 changed files with 17 additions and 17 deletions

View File

@@ -380,7 +380,7 @@ lLLVMConstantValue(const Type *type, llvm::LLVMContext *ctx, double value) {
std::vector<llvm::Constant *> vals;
for (unsigned int i = 0; i < lvt->getNumElements(); ++i)
vals.push_back(constElement);
return llvm::ConstantVector::get(lvt, vals);
return llvm::ConstantVector::get(vals);
}
else {
const llvm::ArrayType *lat =