[lld] r194166 - rename local variable to avoid shadowing warning

Nick Kledzik kledzik at apple.com
Wed Nov 6 13:30:15 PST 2013


Author: kledzik
Date: Wed Nov  6 15:30:15 2013
New Revision: 194166

URL: http://llvm.org/viewvc/llvm-project?rev=194166&view=rev
Log:
rename local variable to avoid shadowing warning

Modified:
    lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp

Modified: lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp?rev=194166&r1=194165&r2=194166&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp Wed Nov  6 15:30:15 2013
@@ -142,14 +142,14 @@ bool PECOFFLinkingContext::addSectionRen
     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);
     }
   }





More information about the llvm-commits mailing list