[llvm] r249480 - IR: Use auto for iterators, NFC
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 6 15:37:47 PDT 2015
Author: dexonsmith
Date: Tue Oct 6 17:37:47 2015
New Revision: 249480
URL: http://llvm.org/viewvc/llvm-project?rev=249480&view=rev
Log:
IR: Use auto for iterators, NFC
Modified:
llvm/trunk/lib/IR/SymbolTableListTraitsImpl.h
Modified: llvm/trunk/lib/IR/SymbolTableListTraitsImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/SymbolTableListTraitsImpl.h?rev=249480&r1=249479&r2=249480&view=diff
==============================================================================
--- llvm/trunk/lib/IR/SymbolTableListTraitsImpl.h (original)
+++ llvm/trunk/lib/IR/SymbolTableListTraitsImpl.h Tue Oct 6 17:37:47 2015
@@ -46,16 +46,14 @@ void SymbolTableListTraits<ValueSubClass
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);
}
More information about the llvm-commits
mailing list