[BOLT] Remove outdated assertion from local symtab update logic (#187409)

The assert condition (function is not split or split
into less than three fragments) is not always true now
that we will emit more local symbols due to #184074.
This commit is contained in:
YongKang Zhu 2026-03-21 13:15:49 -07:00 committed by GitHub
parent f146677396
commit b7d97d9e8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5396,9 +5396,6 @@ void RewriteInstance::updateELFSymbolTable(
"Local label inside ICF-folded function");
if (Function && Function->isEmitted()) {
assert(Function->getLayout().isHotColdSplit() &&
"Adding symbols based on cold fragment when there are more than "
"2 fragments");
const uint64_t OutputAddress =
Function->translateInputToOutputAddress(Symbol.st_value);