[llvm] r238138 - Use default member initializes. NFC.

Rafael Espindola rafael.espindola at gmail.com
Mon May 25 07:04:31 PDT 2015


Author: rafael
Date: Mon May 25 09:04:31 2015
New Revision: 238138

URL: http://llvm.org/viewvc/llvm-project?rev=238138&view=rev
Log:
Use default member initializes. NFC.

Modified:
    llvm/trunk/include/llvm/MC/MCSection.h

Modified: llvm/trunk/include/llvm/MC/MCSection.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSection.h?rev=238138&r1=238137&r2=238138&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCSection.h (original)
+++ llvm/trunk/include/llvm/MC/MCSection.h Mon May 25 09:04:31 2015
@@ -36,16 +36,15 @@ private:
   void operator=(const MCSection &) = delete;
 
   MCSymbol *Begin;
-  MCSymbol *End;
+  MCSymbol *End = nullptr;
   /// The alignment requirement of this section.
-  unsigned Alignment;
+  unsigned Alignment = 1;
   /// The section index in the assemblers section list.
-  unsigned Ordinal;
+  unsigned Ordinal = ~UINT32_C(0);
 
 protected:
   MCSection(SectionVariant V, SectionKind K, MCSymbol *Begin)
-      : Begin(Begin), End(nullptr), Alignment(1), Ordinal(~UINT32_C(0)),
-        Variant(V), Kind(K) {}
+      : Begin(Begin), Variant(V), Kind(K) {}
   SectionVariant Variant;
   SectionKind Kind;
 





More information about the llvm-commits mailing list