We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e78ac80 commit f6157c7Copy full SHA for f6157c7
llvm/include/llvm/ADT/StringMap.h
@@ -264,7 +264,7 @@ class LLVM_ALLOCATORHOLDER_EMPTYBASE StringMap
264
/// at - Return the entry for the specified key, or abort if no such
265
/// entry exists.
266
const ValueTy &at(StringRef Val) const {
267
- auto Iter = this->find(std::move(Val));
+ auto Iter = this->find(Val);
268
assert(Iter != this->end() && "StringMap::at failed due to a missing key");
269
return Iter->second;
270
}
0 commit comments