summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCUDANV.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-07-02 11:41:41 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-07-02 11:41:41 +0000
commit309347385e9b31eb304dca5b1262c2609fa9d029 (patch)
tree20d197f31c221313c8e023521fab8dc693229425 /clang/lib/CodeGen/CGCUDANV.cpp
parent3bc1edf95ba7ec0ed52d80e5f18f167360d44427 (diff)
downloadbcm5719-llvm-309347385e9b31eb304dca5b1262c2609fa9d029.tar.gz
bcm5719-llvm-309347385e9b31eb304dca5b1262c2609fa9d029.zip
Use arrays or initializer lists to feed ArrayRefs instead of SmallVector where possible.
No functionality change intended llvm-svn: 274432
Diffstat (limited to 'clang/lib/CodeGen/CGCUDANV.cpp')
-rw-r--r--clang/lib/CodeGen/CGCUDANV.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGCUDANV.cpp b/clang/lib/CodeGen/CGCUDANV.cpp
index c6788091cac..ce8b3c34283 100644
--- a/clang/lib/CodeGen/CGCUDANV.cpp
+++ b/clang/lib/CodeGen/CGCUDANV.cpp
@@ -98,10 +98,7 @@ CGNVCUDARuntime::CGNVCUDARuntime(CodeGenModule &CGM)
llvm::Constant *CGNVCUDARuntime::getSetupArgumentFn() const {
// cudaError_t cudaSetupArgument(void *, size_t, size_t)
- std::vector<llvm::Type*> Params;
- Params.push_back(VoidPtrTy);
- Params.push_back(SizeTy);
- Params.push_back(SizeTy);
+ llvm::Type *Params[] = {VoidPtrTy, SizeTy, SizeTy};
return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy,
Params, false),
"cudaSetupArgument");
OpenPOWER on IntegriCloud