From 982c6b24b04f5dfa28aeedfb3b2e370f2359348f Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Sat, 17 Dec 2016 01:31:46 +0000 Subject: [PATCH] Fix compilation. unittests/ADT/TwineTest.cpp:106:38: error: field 'Count' will be initialized after base 'llvm::FormatAdapter' [-Werror,-Wreorder] explicit formatter(int &Count) : Count(Count), FormatAdapter(0) {} llvm-svn: 290029 --- llvm/unittests/ADT/TwineTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/unittests/ADT/TwineTest.cpp b/llvm/unittests/ADT/TwineTest.cpp index 8d3b6e3d54a0..0b7e88dee500 100644 --- a/llvm/unittests/ADT/TwineTest.cpp +++ b/llvm/unittests/ADT/TwineTest.cpp @@ -103,7 +103,7 @@ TEST(TwineTest, toNullTerminatedStringRef) { TEST(TwineTest, LazyEvaluation) { struct formatter : FormatAdapter { - 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; }