summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-06-27 23:28:02 +0000
committerChris Lattner <sabre@nondot.org>2001-06-27 23:28:02 +0000
commit223796ccf22352176ec04d264112b9c1c642f52b (patch)
tree7ac83cb74ae103b054892dd091ae627e541dacb2 /llvm/lib
parent642a3063da8038306dabe24be598c4b88b7c8902 (diff)
downloadbcm5719-llvm-223796ccf22352176ec04d264112b9c1c642f52b.tar.gz
bcm5719-llvm-223796ccf22352176ec04d264112b9c1c642f52b.zip
Convert postincrements to more efficient preincrements
llvm-svn: 81
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/ValueHolderImpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/ValueHolderImpl.h b/llvm/lib/VMCore/ValueHolderImpl.h
index 1bfdd2512e1..9d0e87413fa 100644
--- a/llvm/lib/VMCore/ValueHolderImpl.h
+++ b/llvm/lib/VMCore/ValueHolderImpl.h
@@ -17,7 +17,7 @@ template<class ValueSubclass, class ItemParentType>
void ValueHolder<ValueSubclass,ItemParentType>::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<ValueSubclass,ItemParentType>::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);
}
}
OpenPOWER on IntegriCloud