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 88f010a commit 4508d6aCopy full SHA for 4508d6a
llvm/lib/Support/ELFAttrParserExtended.cpp
@@ -32,9 +32,9 @@ ELFExtendedAttrParser::getAttributeValue(unsigned Tag) const {
32
std::optional<unsigned>
33
ELFExtendedAttrParser::getAttributeValue(StringRef BuildAttrSubsectionName,
34
unsigned Tag) const {
35
- for (auto SubSection : SubSectionVec) {
+ for (const auto &SubSection : SubSectionVec) {
36
if (BuildAttrSubsectionName == SubSection.Name)
37
- for (auto BAItem : SubSection.Content) {
+ for (const auto &BAItem : SubSection.Content) {
38
if (Tag == BAItem.Tag)
39
return std::optional<unsigned>(BAItem.IntValue);
40
}
0 commit comments