Make SmallPtrSet iterators real iterators
[oota-llvm.git] / include / llvm / ADT / APSInt.h
index 6fef4c7a0d0cb1a10921dcc75e7d7f828d73f398..1c9931c30fe511263a8ecf96856794c56264c9da 100644 (file)
@@ -59,7 +59,7 @@ public:
 
   /// toString - Append this APSInt to the specified SmallString.
   void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
-    return APInt::toString(Str, Radix, isSigned());
+    APInt::toString(Str, Radix, isSigned());
   }
   /// toString - Converts an APInt to a std::string.  This is an inefficient
   /// method, your should prefer passing in a SmallString instead.
@@ -150,7 +150,7 @@ public:
     return *this;
   }
   APSInt& operator--() {
-    static_cast<APInt&>(*this)++;
+    static_cast<APInt&>(*this)--;
     return *this;
   }
   APSInt operator++(int) {