IR: Use auto for iterators, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 6 Oct 2015 22:37:47 +0000 (22:37 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 6 Oct 2015 22:37:47 +0000 (22:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249480 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/SymbolTableListTraitsImpl.h

index 8eba24f8300fdfe8367ab3b4ddacf521759a486b..4d17d75859cf114ccfd42a50b5d0f574871dfda6 100644 (file)
@@ -46,16 +46,14 @@ void SymbolTableListTraits<ValueSubClass,ItemParentClass>
   
   if (OldST) {
     // Remove all entries from the previous symtab.
-    for (typename iplist<ValueSubClass>::iterator I = ItemList.begin();
-         I != ItemList.end(); ++I)
+    for (auto I = ItemList.begin(); I != ItemList.end(); ++I)
       if (I->hasName())
         OldST->removeValueName(I->getValueName());
   }
 
   if (NewST) {
     // Add all of the items to the new symtab.
-    for (typename iplist<ValueSubClass>::iterator I = ItemList.begin();
-         I != ItemList.end(); ++I)
+    for (auto I = ItemList.begin(); I != ItemList.end(); ++I)
       if (I->hasName())
         NewST->reinsertValue(I);
   }