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
This commit is contained in:
Ted Kremenek 2009-02-16 22:39:08 +00:00
parent 50369517b7
commit 3c172a2959

View File

@ -150,7 +150,7 @@ public:
return *this;
}
APSInt& operator--() {
static_cast<APInt&>(*this)++;
static_cast<APInt&>(*this)--;
return *this;
}
APSInt operator++(int) {