Fix compilation.

unittests/ADT/TwineTest.cpp:106:38: error: field 'Count' will be initialized after base 'llvm::FormatAdapter<int>' [-Werror,-Wreorder]
    explicit formatter(int &Count) : Count(Count), FormatAdapter(0) {}

llvm-svn: 290029
This commit is contained in:
Evgeniy Stepanov 2016-12-17 01:31:46 +00:00
parent 401f381533
commit 982c6b24b0
1 changed files with 1 additions and 1 deletions
llvm/unittests/ADT

View File

@ -103,7 +103,7 @@ TEST(TwineTest, toNullTerminatedStringRef) {
TEST(TwineTest, LazyEvaluation) {
struct formatter : FormatAdapter<int> {
explicit formatter(int &Count) : Count(Count), FormatAdapter(0) {}
explicit formatter(int &Count) : FormatAdapter(0), Count(Count) {}
int &Count;
void format(raw_ostream &OS, StringRef Style) { ++Count; }