summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorKadir Cetinkaya <kadircet@google.com>2019-06-17 14:23:06 +0000
committerKadir Cetinkaya <kadircet@google.com>2019-06-17 14:23:06 +0000
commit3c9391aad9eeefd4a5b4535931949a30898b79bc (patch)
tree89ed6834658db72f229fd15dec9ddeca435a723b /clang/lib/CodeGen
parent1df203d78e478bea989736fd9f1657adea70db0d (diff)
downloadbcm5719-llvm-3c9391aad9eeefd4a5b4535931949a30898b79bc.tar.gz
bcm5719-llvm-3c9391aad9eeefd4a5b4535931949a30898b79bc.zip
[clang][CodeGen] Remove std::move on temporary
llvm-svn: 363563
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGCUDANV.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCUDANV.cpp b/clang/lib/CodeGen/CGCUDANV.cpp
index 25d6b8e6a0e..4d4038dae9c 100644
--- a/clang/lib/CodeGen/CGCUDANV.cpp
+++ b/clang/lib/CodeGen/CGCUDANV.cpp
@@ -795,7 +795,7 @@ llvm::Function *CGNVCUDARuntime::makeModuleDtorFunction() {
std::string CGNVCUDARuntime::getDeviceStubName(llvm::StringRef Name) const {
if (!CGM.getLangOpts().HIP)
return Name;
- return std::move((Name + ".stub").str());
+ return (Name + ".stub").str();
}
CGCUDARuntime *CodeGen::CreateNVCUDARuntime(CodeGenModule &CGM) {
OpenPOWER on IntegriCloud