Fix bug where APSInt::operator-- incremented instead of decremented.

llvm-svn: 64687
This commit is contained in:
Ted Kremenek 2009-02-16 22:39:08 +00:00
parent 5978cdb5ef
commit 772e6f3c93
1 changed files with 1 additions and 1 deletions

View File

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