From 2dc6188e7af85cff18bdea2f56f0ea6a3daab07d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 5 Nov 2015 23:55:51 +0000 Subject: [PATCH] Simplify the constructor. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252243 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCDwarf.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp index 379df6534da..b587680d682 100644 --- a/lib/MC/MCDwarf.cpp +++ b/lib/MC/MCDwarf.cpp @@ -996,14 +996,13 @@ static void EmitPersonality(MCStreamer &streamer, const MCSymbol &symbol, namespace { class FrameEmitterImpl { - int CFAOffset; - int InitialCFAOffset; + int CFAOffset = 0; + int InitialCFAOffset = 0; bool IsEH; - const MCSymbol *SectionStart; + const MCSymbol *SectionStart = nullptr; public: - FrameEmitterImpl(bool isEH) - : CFAOffset(0), InitialCFAOffset(0), IsEH(isEH), SectionStart(nullptr) {} + FrameEmitterImpl(bool IsEH) : IsEH(IsEH) {} void setSectionStart(const MCSymbol *Label) { SectionStart = Label; } -- 2.34.1