diff options
author | Chris Lattner <sabre@nondot.org> | 2001-06-27 23:34:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-06-27 23:34:01 +0000 |
commit | 079df31921f11cd4b4d4dec1cf32dd291acf4995 (patch) | |
tree | 6839828743a0160d4cc554f0a011411dd5041b57 /lib/Bytecode/Writer/ConstantWriter.cpp | |
parent | 42e018c8057effef5ed1494b999052981d8cf195 (diff) |
Convert ugly postincrement to efficient preincrement
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/ConstantWriter.cpp')
-rw-r--r-- | lib/Bytecode/Writer/ConstantWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp index e0504a5b38..e65ea45067 100644 --- a/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/lib/Bytecode/Writer/ConstantWriter.cpp @@ -30,7 +30,7 @@ void BytecodeWriter::outputType(const Type *T) { // Output all of the arguments... MethodType::ParamTypes::const_iterator I = MT->getParamTypes().begin(); - for (; I != MT->getParamTypes().end(); I++) { + for (; I != MT->getParamTypes().end(); ++I) { Slot = Table.getValSlot(*I); assert(Slot != -1 && "Type used but not available!!"); output_vbr((unsigned)Slot, Out); @@ -57,7 +57,7 @@ void BytecodeWriter::outputType(const Type *T) { // Output all of the element types... StructType::ElementTypes::const_iterator I = ST->getElementTypes().begin(); - for (; I != ST->getElementTypes().end(); I++) { + for (; I != ST->getElementTypes().end(); ++I) { int Slot = Table.getValSlot(*I); assert(Slot != -1 && "Type used but not available!!"); output_vbr((unsigned)Slot, Out); |