File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,9 @@ class MCStreamer {
399399 return SectionStack.back ().first ;
400400 return MCSectionSubPair ();
401401 }
402- MCSection *getCurrentSectionOnly () const { return getCurrentSection ().first ; }
402+ MCSection *getCurrentSectionOnly () const {
403+ return CurFrag->getParent ();
404+ }
403405
404406 // / Return the previous section that the streamer is emitting code to.
405407 MCSectionSubPair getPreviousSection () const {
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ void MCELFStreamer::emitAssemblerFlag(MCAssemblerFlag Flag) {
102102// needs to be aligned to at least the bundle size.
103103static void setSectionAlignmentForBundling (const MCAssembler &Assembler,
104104 MCSection *Section) {
105- if (Section && Assembler.isBundlingEnabled () && Section->hasInstructions ())
105+ if (Assembler.isBundlingEnabled () && Section->hasInstructions ())
106106 Section->ensureMinAlignment (Align (Assembler.getBundleAlignSize ()));
107107}
108108
You can’t perform that action at this time.
0 commit comments