Fix bug where APSInt::operator-- incremented instead of decremented.
authorTed Kremenek <kremenek@apple.com>
Mon, 16 Feb 2009 22:39:08 +0000 (22:39 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 16 Feb 2009 22:39:08 +0000 (22:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64687 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APSInt.h

index 7e7d1c398f2c2c18b081833f471234e7618fa5b9..1c9931c30fe511263a8ecf96856794c56264c9da 100644 (file)
@@ -150,7 +150,7 @@ public:
     return *this;
   }
   APSInt& operator--() {
-    static_cast<APInt&>(*this)++;
+    static_cast<APInt&>(*this)--;
     return *this;
   }
   APSInt operator++(int) {