From eced115aace08f41e7a36f2c6d2646d56049b4d6 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Sat, 12 Nov 2016 00:35:58 +0000 Subject: [PATCH] One more set of changes to fix formatv() on linux. llvm-svn: 286692 --- llvm/include/llvm/Support/FormatVariadic.h | 4 ++-- llvm/include/llvm/Support/FormatVariadicDetails.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/Support/FormatVariadic.h b/llvm/include/llvm/Support/FormatVariadic.h index 1f3ed73..a071fa8 100644 --- a/llvm/include/llvm/Support/FormatVariadic.h +++ b/llvm/include/llvm/Support/FormatVariadic.h @@ -124,14 +124,14 @@ public: return Result; } - template llvm::SmallString sstr() const { + template llvm::SmallString sstr() const { SmallString Result; raw_svector_ostream Stream(Result); Stream << *this; return Result; } - template operator SmallString() const { return sstr(); } + template operator SmallString() const { return sstr(); } operator std::string() const { return str(); } }; diff --git a/llvm/include/llvm/Support/FormatVariadicDetails.h b/llvm/include/llvm/Support/FormatVariadicDetails.h index daae543..edde6db 100644 --- a/llvm/include/llvm/Support/FormatVariadicDetails.h +++ b/llvm/include/llvm/Support/FormatVariadicDetails.h @@ -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; -- 2.7.4