summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-06 22:37:47 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-06 22:37:47 +0000
commit55a0c43f8ef25f35693f6ebc8efe49a4089f25ab (patch)
treeddde00d5abbf948c9097fc98668eac124314c363 /llvm/lib
parenta59824a174f69fc07f715efc220e26f8c2620e3c (diff)
downloadbcm5719-llvm-55a0c43f8ef25f35693f6ebc8efe49a4089f25ab.tar.gz
bcm5719-llvm-55a0c43f8ef25f35693f6ebc8efe49a4089f25ab.zip
IR: Use auto for iterators, NFC
llvm-svn: 249480
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/SymbolTableListTraitsImpl.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/IR/SymbolTableListTraitsImpl.h b/llvm/lib/IR/SymbolTableListTraitsImpl.h
index 8eba24f8300..4d17d75859c 100644
--- a/llvm/lib/IR/SymbolTableListTraitsImpl.h
+++ b/llvm/lib/IR/SymbolTableListTraitsImpl.h
@@ -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);
}
OpenPOWER on IntegriCloud