X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FVMCore%2FSymbolTableListTraitsImpl.h;h=36b08ab9f6fa9090f6fc4c88873670ec9dce715b;hb=b8fa514b1d05ee9fa8632d2f92b3f6ee03bba384;hp=a9971c8bbbaa63e5b2ffe0bb46be1b5d51305db6;hpb=7e70829632f82de15db187845666aaca6e04b792;p=oota-llvm.git diff --git a/lib/VMCore/SymbolTableListTraitsImpl.h b/lib/VMCore/SymbolTableListTraitsImpl.h index a9971c8bbba..36b08ab9f6f 100644 --- a/lib/VMCore/SymbolTableListTraitsImpl.h +++ b/lib/VMCore/SymbolTableListTraitsImpl.h @@ -21,7 +21,8 @@ void SymbolTableListTraits // Remove all of the items from the old symtab.. if (SymTabObject && !List.empty()) { SymbolTable *SymTab = SymTabObject->getSymbolTable(); - for (iplist::iterator I = List.begin(); I != List.end(); ++I) + for (typename iplist::iterator I = List.begin(); + I != List.end(); ++I) if (I->hasName()) SymTab->remove(I); } @@ -30,7 +31,8 @@ void SymbolTableListTraits // Add all of the items to the new symtab... if (SymTabObject && !List.empty()) { SymbolTable *SymTab = SymTabObject->getSymbolTableSure(); - for (iplist::iterator I = List.begin(); I != List.end(); ++I) + for (typename iplist::iterator I = List.begin(); + I != List.end(); ++I) if (I->hasName()) SymTab->insert(I); } }