[llvm] r290029 - Fix compilation.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 16 17:31:46 PST 2016
Author: eugenis
Date: Fri Dec 16 19:31:46 2016
New Revision: 290029
URL: http://llvm.org/viewvc/llvm-project?rev=290029&view=rev
Log:
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) {}
Modified:
llvm/trunk/unittests/ADT/TwineTest.cpp
Modified: llvm/trunk/unittests/ADT/TwineTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/TwineTest.cpp?rev=290029&r1=290028&r2=290029&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/TwineTest.cpp (original)
+++ llvm/trunk/unittests/ADT/TwineTest.cpp Fri Dec 16 19:31:46 2016
@@ -103,7 +103,7 @@ TEST(TwineTest, toNullTerminatedStringRe
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; }
More information about the llvm-commits
mailing list