forked from OSchip/llvm-project
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:
parent
401f381533
commit
982c6b24b0
llvm/unittests/ADT
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue