Skip to content

Commit

Permalink
One more set of changes to fix formatv() on linux.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286692 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Zachary Turner committed Nov 12, 2016
1 parent aec8332 commit 3978213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/llvm/Support/FormatVariadic.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ class formatv_object_base {
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(); }
};
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/Support/FormatVariadicDetails.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3978213

Please sign in to comment.