From: Ted Kremenek Date: Mon, 16 Feb 2009 22:39:08 +0000 (+0000) Subject: Fix bug where APSInt::operator-- incremented instead of decremented. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3c172a29598aabf76ddaf02f4fd7ab85df74ecd0;p=oota-llvm.git 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 --- diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index 7e7d1c398f2..1c9931c30fe 100644 --- a/include/llvm/ADT/APSInt.h +++ b/include/llvm/ADT/APSInt.h @@ -150,7 +150,7 @@ public: return *this; } APSInt& operator--() { - static_cast(*this)++; + static_cast(*this)--; return *this; } APSInt operator++(int) {