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 7fb71d1 commit a5c33e6Copy full SHA for a5c33e6
llvm/lib/Support/ELFAttrParserExtended.cpp
@@ -53,9 +53,9 @@ ELFExtendedAttrParser::getAttributeString(unsigned Tag) const {
53
std::optional<StringRef>
54
ELFExtendedAttrParser::getAttributeString(StringRef BuildAttrSubsectionName,
55
unsigned Tag) const {
56
- for (auto SubSection : SubSectionVec) {
+ for (const auto &SubSection : SubSectionVec) {
57
if (BuildAttrSubsectionName == SubSection.Name)
58
- for (auto BAItem : SubSection.Content) {
+ for (const auto &BAItem : SubSection.Content) {
59
if (Tag == BAItem.Tag)
60
return std::optional<StringRef>(BAItem.StringValue);
61
}
0 commit comments