These function return 'void'. Don't have 'return' return anything.
authorBill Wendling <isanbard@gmail.com>
Mon, 9 Feb 2009 12:31:26 +0000 (12:31 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 9 Feb 2009 12:31:26 +0000 (12:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64136 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APInt.h
include/llvm/ADT/APSInt.h

index ab2363bfb937ddfb25c913402aa3363860ec8094..3bbd5278e96f7f8f4a7e0eeb9ebc6e3319b5d84c 100644 (file)
@@ -1125,13 +1125,13 @@ public:
   /// Considers the APInt to be unsigned and converts it into a string in the
   /// radix given. The radix can be 2, 8, 10 or 16.
   void toStringUnsigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
-    return toString(Str, Radix, false);
+    toString(Str, Radix, false);
   }
 
   /// Considers the APInt to be signed and converts it into a string in the
   /// radix given. The radix can be 2, 8, 10 or 16.
   void toStringSigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
-    return toString(Str, Radix, true);
+    toString(Str, Radix, true);
   }
 
   /// toString - This returns the APInt as a std::string.  Note that this is an
index 6fef4c7a0d0cb1a10921dcc75e7d7f828d73f398..7e7d1c398f2c2c18b081833f471234e7618fa5b9 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.