One more set of changes to fix formatv() on linux.
authorZachary Turner <zturner@google.com>
Sat, 12 Nov 2016 00:35:58 +0000 (00:35 +0000)
committerZachary Turner <zturner@google.com>
Sat, 12 Nov 2016 00:35:58 +0000 (00:35 +0000)
llvm-svn: 286692

llvm/include/llvm/Support/FormatVariadic.h
llvm/include/llvm/Support/FormatVariadicDetails.h

index 1f3ed73..a071fa8 100644 (file)
@@ -124,14 +124,14 @@ public:
     return Result;
   }
 
-  template <size_t N> llvm::SmallString<N> sstr() const {
+  template <unsigned N> llvm::SmallString<N> sstr() const {
     SmallString<N> Result;
     raw_svector_ostream Stream(Result);
     Stream << *this;
     return Result;
   }
 
-  template <size_t N> operator SmallString<N>() const { return sstr<N>(); }
+  template <unsigned N> operator SmallString<N>() const { return sstr<N>(); }
 
   operator std::string() const { return str(); }
 };
index daae543..edde6db 100644 (file)
@@ -22,7 +22,7 @@ namespace detail {
 
 class format_wrapper {
 protected:
-  ~format_wrapper() {}
+  virtual ~format_wrapper() {}
 
 public:
   virtual void format(llvm::raw_ostream &S, StringRef Options) = 0;