summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-22 15:08:57 +0000
committerDan Gohman <gohman@apple.com>2010-06-22 15:08:57 +0000
commitd2d1ae105d34209682d794c367f1df1cb23711c5 (patch)
tree940f256bdfe3a69cf8ee0f56294046e10bdc6376 /llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
parenta46d66122ff571006ba7ce77ed5b5ad04b113c8a (diff)
downloadbcm5719-llvm-d2d1ae105d34209682d794c367f1df1cb23711c5.tar.gz
bcm5719-llvm-d2d1ae105d34209682d794c367f1df1cb23711c5.zip
Use pre-increment instead of post-increment when the result is not used.
llvm-svn: 106542
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index 5ca9ce376f2..eefcbb44dbc 100644
--- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -926,7 +926,7 @@ void SROA::DoScalarReplacement(AllocaInst *AI,
DeleteDeadInstructions();
AI->eraseFromParent();
- NumReplaced++;
+ ++NumReplaced;
}
/// DeleteDeadInstructions - Erase instructions on the DeadInstrs list,
OpenPOWER on IntegriCloud