@@ -145,8 +145,7 @@ class SFrameEmitterImpl {
145145 case MCCFIInstruction::OpLLVMDefAspaceCfa:
146146 if (!setCFARegister (FRE, CFI))
147147 return false ;
148- setCFAOffset (FRE, CFI.getLoc (), CFI.getOffset ());
149- return true ;
148+ return setCFAOffset (FRE, CFI.getLoc (), CFI.getOffset ());
150149 case MCCFIInstruction::OpOffset:
151150 if (CFI.getRegister () == FPReg)
152151 FRE.FPOffset = CFI.getOffset ();
@@ -250,9 +249,12 @@ class SFrameEmitterImpl {
250249 FDE.FREs .push_back (BaseFRE);
251250
252251 for (const auto &CFI : DF.Instructions ) {
253- // Instructions from InitialFrameState may not have a label, but if
254- // these instructions don't, then they are in dead code or otherwise
255- // unused.
252+ // Instructions from InitialFrameState may not have a label, but if these
253+ // instructions don't, then they are in dead code or otherwise unused.
254+ // TODO: This check follows MCDwarf.cpp
255+ // FrameEmitterImplementation::emitCFIInstructions, but nothing in the
256+ // testsuite triggers it. We should see if it can be removed in both
257+ // places, or alternately, add a test to exercise it.
256258 auto *L = CFI.getLabel ();
257259 if (L && !L->isDefined ())
258260 continue ;
0 commit comments