[llvm] r262805 - fix sanitizer-ppc64be-linux failure for r262804
Valery Pykhtin via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 6 07:13:54 PST 2016
Author: vpykhtin
Date: Sun Mar 6 09:13:54 2016
New Revision: 262805
URL: http://llvm.org/viewvc/llvm-project?rev=262805&view=rev
Log:
fix sanitizer-ppc64be-linux failure for r262804
error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move]
http://lab.llvm.org:8011/builders/sanitizer-ppc64be-linux/builds/930
Modified:
llvm/trunk/lib/Target/AMDGPU/Utils/AMDKernelCodeTUtils.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/Utils/AMDKernelCodeTUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/Utils/AMDKernelCodeTUtils.cpp?rev=262805&r1=262804&r2=262805&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/Utils/AMDKernelCodeTUtils.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/Utils/AMDKernelCodeTUtils.cpp Sun Mar 6 09:13:54 2016
@@ -34,7 +34,7 @@ static StringMap<int> createIndexMap(con
StringMap<int> map;
for (auto Name : a)
map.insert(std::make_pair(Name, map.size()));
- return std::move(map);
+ return map;
}
static int get_amd_kernel_code_t_FieldIndex(StringRef name) {
More information about the llvm-commits
mailing list