diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/IR/SymbolTableListTraitsImpl.h | 6 |
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); } |

