default this to radix 10 like the toString(Un)Signed methods.
authorChris Lattner <sabre@nondot.org>
Thu, 23 Aug 2007 05:21:48 +0000 (05:21 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 23 Aug 2007 05:21:48 +0000 (05:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41311 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APSInt.h

index b73ee76c082ef45104c3ac42f628feb133de1e03..a04f8425ece29337f3bfbf5793d103fb7e4a5f5c 100644 (file)
@@ -54,7 +54,7 @@ public:
   
   /// This is used internally to convert an APInt to a string.
   /// @brief Converts an APInt to a std::string
-  std::string toString(uint8_t Radix) const {
+  std::string toString(uint8_t Radix = 10) const {
     return APInt::toString(Radix, isSigned());
   }