@@ -47,9 +47,8 @@ static std::optional<CFARegOffsetInfo>
4747getCFARegOffsetInfo (const dwarf::UnwindRow &UnwindRow) {
4848 auto CFALocation = UnwindRow.getCFAValue ();
4949 if (CFALocation.getLocation () !=
50- dwarf::UnwindLocation::Location::RegPlusOffset) {
50+ dwarf::UnwindLocation::Location::RegPlusOffset)
5151 return std::nullopt ;
52- }
5352
5453 return CFARegOffsetInfo (CFALocation.getRegister (), CFALocation.getOffset ());
5554}
@@ -103,9 +102,8 @@ DWARFCFIAnalysis::DWARFCFIAnalysis(MCContext *Context, MCInstrInfo const &MCII,
103102 nullptr , MCRI->getDwarfRegNum (MCRI->getProgramCounter (), IsEH)));
104103
105104 for (auto &&InitialFrameStateCFIDirective :
106- Context->getAsmInfo ()->getInitialFrameState ()) {
105+ Context->getAsmInfo ()->getInitialFrameState ())
107106 State.update (InitialFrameStateCFIDirective);
108- }
109107
110108 auto MaybeCurrentRow = State.getCurrentUnwindRow ();
111109 assert (MaybeCurrentRow && " there should be at least one row" );
@@ -119,9 +117,8 @@ DWARFCFIAnalysis::DWARFCFIAnalysis(MCContext *Context, MCInstrInfo const &MCII,
119117 State.update (MCCFIInstruction::createOffset (nullptr , CFA.Reg , 0 ));
120118
121119 // Applying the prologue after default assumptions to overwrite them.
122- for (auto &&Directive : Prologue) {
120+ for (auto &&Directive : Prologue)
123121 State.update (Directive);
124- }
125122}
126123
127124void DWARFCFIAnalysis::update (const MCInst &Inst,
0 commit comments