summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2013-11-06 21:30:15 +0000
committerNick Kledzik <kledzik@apple.com>2013-11-06 21:30:15 +0000
commit3df8104eee834de14c5cd63a3ebc011ee65863cc (patch)
tree19165d951504c1940a73bd359015d258fb4c316d
parentda9d8bfa2556418d3ccb3ab4347994b87842000a (diff)
downloadbcm5719-llvm-3df8104eee834de14c5cd63a3ebc011ee65863cc.tar.gz
bcm5719-llvm-3df8104eee834de14c5cd63a3ebc011ee65863cc.zip
rename local variable to avoid shadowing warning
llvm-svn: 194166
-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