[llvm] r304494 - Fix 2 more -Wreorder warnings.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 16:24:50 PDT 2017


Author: zturner
Date: Thu Jun  1 18:24:50 2017
New Revision: 304494

URL: http://llvm.org/viewvc/llvm-project?rev=304494&view=rev
Log:
Fix 2 more -Wreorder warnings.

Modified:
    llvm/trunk/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp

Modified: llvm/trunk/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp?rev=304494&r1=304493&r2=304494&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp (original)
+++ llvm/trunk/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp Thu Jun  1 18:24:50 2017
@@ -16,13 +16,13 @@ using namespace llvm;
 using namespace llvm::codeview;
 
 DebugSubsectionRecord::DebugSubsectionRecord()
-    : Kind(DebugSubsectionKind::None),
-      Container(CodeViewContainer::ObjectFile) {}
+    : Container(CodeViewContainer::ObjectFile),
+      Kind(DebugSubsectionKind::None) {}
 
 DebugSubsectionRecord::DebugSubsectionRecord(DebugSubsectionKind Kind,
                                              BinaryStreamRef Data,
                                              CodeViewContainer Container)
-    : Kind(Kind), Data(Data), Container(Container) {}
+    : Container(Container), Kind(Kind), Data(Data) {}
 
 Error DebugSubsectionRecord::initialize(BinaryStreamRef Stream,
                                         DebugSubsectionRecord &Info,
@@ -62,7 +62,7 @@ BinaryStreamRef DebugSubsectionRecord::g
 DebugSubsectionRecordBuilder::DebugSubsectionRecordBuilder(
     DebugSubsectionKind Kind, DebugSubsection &Frag,
     CodeViewContainer Container)
-    : Kind(Kind), Frag(Frag), Container(Container) {}
+    : Container(Container), Kind(Kind), Frag(Frag) {}
 
 uint32_t DebugSubsectionRecordBuilder::calculateSerializedLength() {
   uint32_t Size = sizeof(DebugSubsectionHeader) +




More information about the llvm-commits mailing list