diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-02-16 22:39:08 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-02-16 22:39:08 +0000 |
commit | 3c172a29598aabf76ddaf02f4fd7ab85df74ecd0 (patch) | |
tree | 47b75c2ae0aba3d3e1ce07905904414f4a4cc063 /include/llvm/ADT/APSInt.h | |
parent | 50369517b7ef739a8d83ece3d33ab3302de879f8 (diff) | |
download | external_llvm-3c172a29598aabf76ddaf02f4fd7ab85df74ecd0.zip external_llvm-3c172a29598aabf76ddaf02f4fd7ab85df74ecd0.tar.gz external_llvm-3c172a29598aabf76ddaf02f4fd7ab85df74ecd0.tar.bz2 |
Fix bug where APSInt::operator-- incremented instead of decremented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APSInt.h')
-rw-r--r-- | include/llvm/ADT/APSInt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index 7e7d1c3..1c9931c 100644 --- a/include/llvm/ADT/APSInt.h +++ b/include/llvm/ADT/APSInt.h @@ -150,7 +150,7 @@ public: return *this; } APSInt& operator--() { - static_cast<APInt&>(*this)++; + static_cast<APInt&>(*this)--; return *this; } APSInt operator++(int) { |