diff options
author | Zachary Turner <zturner@google.com> | 2016-11-12 00:35:58 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-11-12 00:35:58 +0000 |
commit | 3978213ab713d16d69a5cc652f50d679695b7f2e (patch) | |
tree | 692e00c72e8dbc2fbcc370506b2ff74d38f9702a /include | |
parent | aec833265cde60433a7d6da86268fcd25ab97707 (diff) |
One more set of changes to fix formatv() on linux.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/FormatVariadic.h | 4 | ||||
-rw-r--r-- | include/llvm/Support/FormatVariadicDetails.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/FormatVariadic.h b/include/llvm/Support/FormatVariadic.h index 1f3ed73edbe..a071fa8c685 100644 --- a/include/llvm/Support/FormatVariadic.h +++ b/include/llvm/Support/FormatVariadic.h @@ -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(); } }; diff --git a/include/llvm/Support/FormatVariadicDetails.h b/include/llvm/Support/FormatVariadicDetails.h index daae5432b26..edde6db162f 100644 --- a/include/llvm/Support/FormatVariadicDetails.h +++ b/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; |