summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-12-17 01:31:46 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-12-17 01:31:46 +0000
commit982c6b24b04f5dfa28aeedfb3b2e370f2359348f (patch)
tree7d7d05bcd825400ce6aad9dba502f82fd86b5f29
parent401f381533540314654fcd322410643451f6eae0 (diff)
downloadbcm5719-llvm-982c6b24b04f5dfa28aeedfb3b2e370f2359348f.tar.gz
bcm5719-llvm-982c6b24b04f5dfa28aeedfb3b2e370f2359348f.zip
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
-rw-r--r--llvm/unittests/ADT/TwineTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ADT/TwineTest.cpp b/llvm/unittests/ADT/TwineTest.cpp
index 8d3b6e3d54a..0b7e88dee50 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<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; }
OpenPOWER on IntegriCloud