diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-07-02 11:41:39 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-07-02 11:41:39 +0000 |
commit | 3bc1edf95ba7ec0ed52d80e5f18f167360d44427 (patch) | |
tree | 17093af9a6c069a04948ba0e2e3373a3b824345a /llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp | |
parent | 270cf12b3ba8fb2c2e4e424582725344eda6f9eb (diff) | |
download | bcm5719-llvm-3bc1edf95ba7ec0ed52d80e5f18f167360d44427.tar.gz bcm5719-llvm-3bc1edf95ba7ec0ed52d80e5f18f167360d44427.zip |
Use arrays or initializer lists to feed ArrayRefs instead of SmallVector where possible.
No functionality change intended.
llvm-svn: 274431
Diffstat (limited to 'llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp')
-rw-r--r-- | llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp b/llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp index af418f0e3da..66a964082c5 100644 --- a/llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp +++ b/llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp @@ -182,11 +182,8 @@ Value *GenericToNVVM::getOrInsertCVTA(Module *M, Function *F, // Insert the address space conversion. Type *ResultType = PointerType::get(Type::getInt8Ty(Context), llvm::ADDRESS_SPACE_GENERIC); - SmallVector<Type *, 2> ParamTypes; - ParamTypes.push_back(ResultType); - ParamTypes.push_back(DestTy); Function *CVTAFunction = Intrinsic::getDeclaration( - M, Intrinsic::nvvm_ptr_global_to_gen, ParamTypes); + M, Intrinsic::nvvm_ptr_global_to_gen, {ResultType, DestTy}); CVTA = Builder.CreateCall(CVTAFunction, CVTA, "cvta"); // Another bitcast from i8 * to <the element type of GVType> * is // required. |