summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/APSInt.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-02-16 22:39:08 +0000
committerTed Kremenek <kremenek@apple.com>2009-02-16 22:39:08 +0000
commit3c172a29598aabf76ddaf02f4fd7ab85df74ecd0 (patch)
tree47b75c2ae0aba3d3e1ce07905904414f4a4cc063 /include/llvm/ADT/APSInt.h
parent50369517b7ef739a8d83ece3d33ab3302de879f8 (diff)
downloadllvm-3c172a29598aabf76ddaf02f4fd7ab85df74ecd0.tar.gz
llvm-3c172a29598aabf76ddaf02f4fd7ab85df74ecd0.tar.bz2
llvm-3c172a29598aabf76ddaf02f4fd7ab85df74ecd0.tar.xz
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h
index 7e7d1c398f..1c9931c30f 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) {