diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-24 22:08:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-24 22:08:53 +0000 |
commit | fe8041ae397ebbcc311469aa39dfb79f8191b412 (patch) | |
tree | 13d57051a1973eea3fc3a8beb8eca5ca3760ef76 /lib/VMCore/SymbolTableListTraitsImpl.h | |
parent | 7f4dd472e35569efefbeffef096c490075e3e824 (diff) |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/SymbolTableListTraitsImpl.h')
-rw-r--r-- | lib/VMCore/SymbolTableListTraitsImpl.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/VMCore/SymbolTableListTraitsImpl.h b/lib/VMCore/SymbolTableListTraitsImpl.h index a9971c8bbb..36b08ab9f6 100644 --- a/lib/VMCore/SymbolTableListTraitsImpl.h +++ b/lib/VMCore/SymbolTableListTraitsImpl.h @@ -21,7 +21,8 @@ void SymbolTableListTraits<ValueSubClass,ItemParentClass,SymTabClass,SubClass> // Remove all of the items from the old symtab.. if (SymTabObject && !List.empty()) { SymbolTable *SymTab = SymTabObject->getSymbolTable(); - for (iplist<ValueSubClass>::iterator I = List.begin(); I != List.end(); ++I) + for (typename iplist<ValueSubClass>::iterator I = List.begin(); + I != List.end(); ++I) if (I->hasName()) SymTab->remove(I); } @@ -30,7 +31,8 @@ void SymbolTableListTraits<ValueSubClass,ItemParentClass,SymTabClass,SubClass> // Add all of the items to the new symtab... if (SymTabObject && !List.empty()) { SymbolTable *SymTab = SymTabObject->getSymbolTableSure(); - for (iplist<ValueSubClass>::iterator I = List.begin(); I != List.end(); ++I) + for (typename iplist<ValueSubClass>::iterator I = List.begin(); + I != List.end(); ++I) if (I->hasName()) SymTab->insert(I); } } |