[llvm-pdbdump] Fix member initialization order warnings.
authorZachary Turner <zturner@google.com>
Fri, 27 Feb 2015 09:53:55 +0000 (09:53 +0000)
committerZachary Turner <zturner@google.com>
Fri, 27 Feb 2015 09:53:55 +0000 (09:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230747 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-pdbdump/CompilandDumper.cpp
tools/llvm-pdbdump/LinePrinter.cpp

index ff956a0c14191288342459a742809914fd4aae5c..e15384ce71c4fc5c2aaa1619a09ca9f039340d2b 100644 (file)
@@ -36,7 +36,7 @@
 using namespace llvm;
 
 CompilandDumper::CompilandDumper(LinePrinter &P)
-    : Printer(P), PDBSymDumper(true) {}
+    : PDBSymDumper(true), Printer(P) {}
 
 void CompilandDumper::dump(const PDBSymbolCompilandDetails &Symbol,
                            raw_ostream &OS, int Indent) {}
index afdfa37edf34f9b281597b8379a837a37df68b8e..09ba329ad0a7172e0c3d9130866348dc0c0a909f 100644 (file)
@@ -14,7 +14,7 @@
 using namespace llvm;
 
 LinePrinter::LinePrinter(int Indent, llvm::raw_ostream &Stream)
-    : IndentSpaces(Indent), CurrentIndent(0), OS(Stream) {}
+    : OS(Stream), IndentSpaces(Indent), CurrentIndent(0) {}
 
 void LinePrinter::Indent() { CurrentIndent += IndentSpaces; }