[llvm] r252243 - Simplify the constructor. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 5 15:55:51 PST 2015
Author: rafael
Date: Thu Nov 5 17:55:51 2015
New Revision: 252243
URL: http://llvm.org/viewvc/llvm-project?rev=252243&view=rev
Log:
Simplify the constructor. NFC.
Modified:
llvm/trunk/lib/MC/MCDwarf.cpp
Modified: llvm/trunk/lib/MC/MCDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDwarf.cpp?rev=252243&r1=252242&r2=252243&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDwarf.cpp (original)
+++ llvm/trunk/lib/MC/MCDwarf.cpp Thu Nov 5 17:55:51 2015
@@ -996,14 +996,13 @@ static void EmitPersonality(MCStreamer &
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; }
More information about the llvm-commits
mailing list