Rename a variable to avoid a declaration conflict.
authorDan Gohman <gohman@apple.com>
Thu, 16 Sep 2010 22:50:09 +0000 (22:50 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 16 Sep 2010 22:50:09 +0000 (22:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114126 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/MemDepPrinter.cpp

index 1cbacff02d2492757f92f6adf5690d110bb2c7fe..6f75239852a8190a9444abd0e36cdbf71d23862c 100644 (file)
@@ -125,11 +125,11 @@ void MemDepPrinter::print(raw_ostream &OS, const Module *M) const {
   for (const_inst_iterator I = inst_begin(*F), E = inst_end(*F); I != E; ++I) {
     const Instruction *Inst = &*I;
 
-    DepSetMap::const_iterator I = Deps.find(Inst);
-    if (I == Deps.end())
+    DepSetMap::const_iterator DI = Deps.find(Inst);
+    if (DI == Deps.end())
       continue;
 
-    const DepSet &InstDeps = I->second;
+    const DepSet &InstDeps = DI->second;
 
     for (DepSet::const_iterator I = InstDeps.begin(), E = InstDeps.end();
          I != E; ++I) {