summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp b/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
index f8a6cd694af..fd88f8fbd96 100644
--- a/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
+++ b/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
@@ -142,14 +142,14 @@ bool PECOFFLinkingContext::addSectionRenaming(raw_ostream &diagnostics,
std::set<StringRef> visited;
visited.insert(sectionName);
for (;;) {
- auto it = _renamedSections.find(sectionName);
- if (it == _renamedSections.end())
+ auto pos = _renamedSections.find(sectionName);
+ if (pos == _renamedSections.end())
break;
- if (visited.count(it->second)) {
+ if (visited.count(pos->second)) {
diagnostics << "/merge:" << from << "=" << to << " makes a cycle";
return false;
}
- sectionName = it->second;
+ sectionName = pos->second;
visited.insert(sectionName);
}
}
OpenPOWER on IntegriCloud