File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,9 @@ class MCStreamer {
399
399
return SectionStack.back ().first ;
400
400
return MCSectionSubPair ();
401
401
}
402
- MCSection *getCurrentSectionOnly () const { return getCurrentSection ().first ; }
402
+ MCSection *getCurrentSectionOnly () const {
403
+ return CurFrag->getParent ();
404
+ }
403
405
404
406
// / Return the previous section that the streamer is emitting code to.
405
407
MCSectionSubPair getPreviousSection () const {
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ void MCELFStreamer::emitAssemblerFlag(MCAssemblerFlag Flag) {
102
102
// needs to be aligned to at least the bundle size.
103
103
static void setSectionAlignmentForBundling (const MCAssembler &Assembler,
104
104
MCSection *Section) {
105
- if (Section && Assembler.isBundlingEnabled () && Section->hasInstructions ())
105
+ if (Assembler.isBundlingEnabled () && Section->hasInstructions ())
106
106
Section->ensureMinAlignment (Align (Assembler.getBundleAlignSize ()));
107
107
}
108
108
You can’t perform that action at this time.
0 commit comments