Skip to content

Commit 7b86fbb

Browse files
committed
[MC] Remove redundant MCSection::empty check. NFC
The section cannot be empty due to allocInitialFragment.
1 parent 3bb0c73 commit 7b86fbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/MC/WinCOFFObjectWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ void WinCOFFWriter::defineSection(const MCAssembler &Asm,
323323
Section->MCSection = &MCSec;
324324
SectionMap[&MCSec] = Section;
325325

326-
if (UseOffsetLabels && !MCSec.empty()) {
326+
if (UseOffsetLabels) {
327327
const uint32_t Interval = 1 << OffsetLabelIntervalBits;
328328
uint32_t N = 1;
329329
for (uint32_t Off = Interval, E = Asm.getSectionAddressSize(MCSec); Off < E;

0 commit comments

Comments
 (0)