[llvm-commits] [llvm] r64687 - /llvm/trunk/include/llvm/ADT/APSInt.h

Ted Kremenek kremenek at apple.com
Mon Feb 16 14:39:08 PST 2009


Author: kremenek
Date: Mon Feb 16 16:39:08 2009
New Revision: 64687

URL: http://llvm.org/viewvc/llvm-project?rev=64687&view=rev
Log:
Fix bug where APSInt::operator-- incremented instead of decremented.

Modified:
    llvm/trunk/include/llvm/ADT/APSInt.h

Modified: llvm/trunk/include/llvm/ADT/APSInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APSInt.h?rev=64687&r1=64686&r2=64687&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/APSInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APSInt.h Mon Feb 16 16:39:08 2009
@@ -150,7 +150,7 @@
     return *this;
   }
   APSInt& operator--() {
-    static_cast<APInt&>(*this)++;
+    static_cast<APInt&>(*this)--;
     return *this;
   }
   APSInt operator++(int) {





More information about the llvm-commits mailing list