[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:
parent
f146677396
commit
b7d97d9e8d
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user