summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/APSInt.h
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2013-03-20 23:56:19 +0000
committerJakub Staszak <kubastaszak@gmail.com>2013-03-20 23:56:19 +0000
commit2adf8ccbf0611df6393c30737d87faaf38cdcd0c (patch)
tree3b9e4091947c3e189d5e1dace806eaa49030c36d /include/llvm/ADT/APSInt.h
parent7f19e5db5f4f730f72c248282b7c00e6cdaf6782 (diff)
downloadllvm-2adf8ccbf0611df6393c30737d87faaf38cdcd0c.tar.gz
llvm-2adf8ccbf0611df6393c30737d87faaf38cdcd0c.tar.bz2
llvm-2adf8ccbf0611df6393c30737d87faaf38cdcd0c.tar.xz
Use pre-inc, pre-dec when possible.
They are generally faster (at least not slower) than post-inc, post-dec. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APSInt.h')
-rw-r--r--include/llvm/ADT/APSInt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h
index 42e123930d..11be4c513e 100644
--- a/include/llvm/ADT/APSInt.h
+++ b/include/llvm/ADT/APSInt.h
@@ -161,11 +161,11 @@ public:
}
APSInt& operator++() {
- static_cast<APInt&>(*this)++;
+ ++(static_cast<APInt&>(*this));
return *this;
}
APSInt& operator--() {
- static_cast<APInt&>(*this)--;
+ --(static_cast<APInt&>(*this));
return *this;
}
APSInt operator++(int) {