From 98e5e8e3f6b15705ed757dac6535aed4eb1881a0 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 25 May 2015 14:04:31 +0000 Subject: [PATCH] Use default member initializes. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238138 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCSection.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/llvm/MC/MCSection.h b/include/llvm/MC/MCSection.h index 7d5128a2d20..ca902f65944 100644 --- a/include/llvm/MC/MCSection.h +++ b/include/llvm/MC/MCSection.h @@ -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; -- 2.34.1