summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-06-27 23:34:01 +0000
committerChris Lattner <sabre@nondot.org>2001-06-27 23:34:01 +0000
commit4c8ba81f2135eb7cf046beb5a81fcd921424d470 (patch)
treef832a743b45d2ae596da2238bd4a433a261db485 /llvm/lib/Bytecode/Writer/ConstantWriter.cpp
parent7798de1382641bacd095a5bc55daea35a4cef5b1 (diff)
downloadbcm5719-llvm-4c8ba81f2135eb7cf046beb5a81fcd921424d470.tar.gz
bcm5719-llvm-4c8ba81f2135eb7cf046beb5a81fcd921424d470.zip
Convert ugly postincrement to efficient preincrement
llvm-svn: 89
Diffstat (limited to 'llvm/lib/Bytecode/Writer/ConstantWriter.cpp')
-rw-r--r--llvm/lib/Bytecode/Writer/ConstantWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
index e0504a5b38f..e65ea450674 100644
--- a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud