]> granicus.if.org Git - clang/commitdiff
[clang][CodeGen] Remove std::move on temporary
authorKadir Cetinkaya <kadircet@google.com>
Mon, 17 Jun 2019 14:23:06 +0000 (14:23 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Mon, 17 Jun 2019 14:23:06 +0000 (14:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363563 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCUDANV.cpp

index 25d6b8e6a0e0ed0f51683caece0e2b332d1637e1..4d4038dae9cfcde267314d2dcd20e8f75fddeae5 100644 (file)
@@ -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) {