From: Kadir Cetinkaya Date: Mon, 17 Jun 2019 14:23:06 +0000 (+0000) Subject: [clang][CodeGen] Remove std::move on temporary X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0247c68cef3d44f6cc14845ae8d629858b319d8b;p=clang [clang][CodeGen] Remove std::move on temporary git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363563 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGCUDANV.cpp b/lib/CodeGen/CGCUDANV.cpp index 25d6b8e6a0..4d4038dae9 100644 --- a/lib/CodeGen/CGCUDANV.cpp +++ b/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) {