llvm.org GIT mirror llvm / 56ec3a4
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262805 91177308-0d34-0410-b5e6-96231b3b80d8 Valery Pykhtin 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3333 StringMap map;
3434 for (auto Name : a)
3535 map.insert(std::make_pair(Name, map.size()));
36 return std::move(map);
36 return map;
3737 }
3838
3939 static int get_amd_kernel_code_t_FieldIndex(StringRef name) {