File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -628,8 +628,8 @@ void MCELFStreamer::finishImpl() {
628
628
}
629
629
630
630
// Ensure the last section gets aligned if necessary.
631
- MCSection *CurSection = getCurrentSectionOnly ();
632
- setSectionAlignmentForBundling (getAssembler (), CurSection );
631
+ if (MCFragment *F = getCurrentFragment ())
632
+ setSectionAlignmentForBundling (getAssembler (), F-> getParent () );
633
633
634
634
finalizeCGProfile ();
635
635
emitFrames (nullptr );
Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ void MCObjectStreamer::emitFrames(MCAsmBackend *MAB) {
143
143
}
144
144
145
145
MCFragment *MCObjectStreamer::getCurrentFragment () const {
146
- assert (CurFrag->getParent () == getCurrentSection ().first );
146
+ assert (!getCurrentSection ().first ||
147
+ CurFrag->getParent () == getCurrentSection ().first );
147
148
return CurFrag;
148
149
}
149
150
You can’t perform that action at this time.
0 commit comments