Skip to content

Commit f0944cc

Browse files
authored
Address comments.
1 parent 4fba85b commit f0944cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/BPSectionOrderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ DenseMap<const InputSectionBase *, int> elf::runBalancedPartitioning(
7979
// Skip empty, discarded, ICF folded sections, .bss. Skipping ICF folded
8080
// sections reduces duplicate detection work in BPSectionOrderer.
8181
if (!sec || sec->size == 0 || !sec->isLive() || sec->repl != sec ||
82-
!orderer.secToSym.try_emplace(sec, d).second || !sec->content().data())
82+
!sec->content().data() || !orderer.secToSym.try_emplace(sec, d).second)
8383
return;
8484
rootSymbolToSectionIdxs[CachedHashStringRef(
8585
lld::utils::getRootSymbol(sym.getName()))]

0 commit comments

Comments
 (0)