Simplify the constructor. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 5 Nov 2015 23:55:51 +0000 (23:55 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 5 Nov 2015 23:55:51 +0000 (23:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252243 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCDwarf.cpp

index 379df65..b587680 100644 (file)
@@ -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; }