One more set of changes to fix formatv() on linux.

llvm-svn: 286692
This commit is contained in:
Zachary Turner 2016-11-12 00:35:58 +00:00
parent f269973b2c
commit eced115aac
2 changed files with 3 additions and 3 deletions

View 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(); }
};

View 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;