Skip to content

Commit f6157c7

Browse files
[ADT] Remove a meaningless std::move (NFC) (#156138)
std::move on StringRef is not useful because it's copied anyway.
1 parent e78ac80 commit f6157c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ADT/StringMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class LLVM_ALLOCATORHOLDER_EMPTYBASE StringMap
264264
/// at - Return the entry for the specified key, or abort if no such
265265
/// entry exists.
266266
const ValueTy &at(StringRef Val) const {
267-
auto Iter = this->find(std::move(Val));
267+
auto Iter = this->find(Val);
268268
assert(Iter != this->end() && "StringMap::at failed due to a missing key");
269269
return Iter->second;
270270
}

0 commit comments

Comments
 (0)