diff --git a/llvm/lib/VMCore/ValueHolderImpl.h b/llvm/lib/VMCore/ValueHolderImpl.h index 1bfdd2512e12..9d0e87413fad 100644 --- a/llvm/lib/VMCore/ValueHolderImpl.h +++ b/llvm/lib/VMCore/ValueHolderImpl.h @@ -17,7 +17,7 @@ template void ValueHolder::setParent(SymTabValue *P) { if (Parent) { // Remove all of the items from the old symbol table.. SymbolTable *SymTab = Parent->getSymbolTable(); - for (iterator I = begin(); I != end(); I++) + for (iterator I = begin(); I != end(); ++I) if ((*I)->hasName()) SymTab->remove(*I); } @@ -25,7 +25,7 @@ void ValueHolder::setParent(SymTabValue *P) { if (Parent) { // Remove all of the items from the old symbol table.. SymbolTable *SymTab = Parent->getSymbolTableSure(); - for (iterator I = begin(); I != end(); I++) + for (iterator I = begin(); I != end(); ++I) if ((*I)->hasName()) SymTab->insert(*I); } }