From a1d960ef5456de31266258800ff2649e09bc75a4 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 5 Nov 2015 23:55:51 +0000 Subject: Simplify the constructor. NFC. llvm-svn: 252243 --- llvm/lib/MC/MCDwarf.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'llvm/lib/MC/MCDwarf.cpp') diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp index 379df6534da..b587680d682 100644 --- a/llvm/lib/MC/MCDwarf.cpp +++ b/llvm/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; } -- cgit v1.2.3