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 5ecfbbd commit e9dff1aCopy full SHA for e9dff1a
llvm/include/llvm/ADT/StringMapEntry.h
@@ -116,9 +116,7 @@ class StringMapEntry final : public StringMapEntryStorage<ValueTy> {
116
return reinterpret_cast<const char *>(this + 1);
117
}
118
119
- StringRef first() const {
120
- return StringRef(getKeyData(), this->getKeyLength());
121
- }
+ StringRef first() const { return getKey(); }
122
123
/// Create a StringMapEntry for the specified key construct the value using
124
/// \p InitiVals.
0 commit comments