forked from OSchip/llvm-project
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 llvm-svn: 262805
This commit is contained in:
parent
499a5c6323
commit
50cd3c4ec7
|
@ -34,7 +34,7 @@ static StringMap<int> createIndexMap(const ArrayRef<StringRef>& a) {
|
||||||
StringMap<int> map;
|
StringMap<int> map;
|
||||||
for (auto Name : a)
|
for (auto Name : a)
|
||||||
map.insert(std::make_pair(Name, map.size()));
|
map.insert(std::make_pair(Name, map.size()));
|
||||||
return std::move(map);
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int get_amd_kernel_code_t_FieldIndex(StringRef name) {
|
static int get_amd_kernel_code_t_FieldIndex(StringRef name) {
|
||||||
|
|
Loading…
Reference in New Issue