Skip to content

Commit

Permalink
Fix compilation.
Browse files Browse the repository at this point in the history
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) {}

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290029 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
eugenis committed Dec 17, 2016
1 parent c961a1d commit af2bc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittests/ADT/TwineTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit af2bc9b

Please sign in to comment.