From: Rafael Espindola Date: Thu, 5 Nov 2015 23:55:51 +0000 (+0000) Subject: Simplify the constructor. NFC. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2dc6188e7af85cff18bdea2f56f0ea6a3daab07d;p=oota-llvm.git Simplify the constructor. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252243 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }