Don't collide loop variable names (to appease GCC)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145515 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp
index cb66aad..c92d32a 100644
--- a/lib/Frontend/CompilerInstance.cpp
+++ b/lib/Frontend/CompilerInstance.cpp
@@ -1214,17 +1214,17 @@
llvm::SmallVector<StringRef, 2> Best;
unsigned BestEditDistance = (std::numeric_limits<unsigned>::max)();
- for (llvm::StringMap<ModuleMap::Module *>::iterator
- I = Module->SubModules.begin(),
- IEnd = Module->SubModules.end();
- I != IEnd; ++I) {
- unsigned ED = Name.edit_distance(I->getValue()->Name,
+ for (llvm::StringMap<ModuleMap::Module *>::iterator
+ J = Module->SubModules.begin(),
+ JEnd = Module->SubModules.end();
+ J != JEnd; ++J) {
+ unsigned ED = Name.edit_distance(J->getValue()->Name,
/*AllowReplacements=*/true,
BestEditDistance);
if (ED <= BestEditDistance) {
if (ED < BestEditDistance)
Best.clear();
- Best.push_back(I->getValue()->Name);
+ Best.push_back(J->getValue()->Name);
}
}
@@ -1259,4 +1259,3 @@
LastModuleImportResult = Module;
return Module;
}
-