From b7d97d9e8dfaeabc6a5271d810d2e2af4e485a4e Mon Sep 17 00:00:00 2001 From: YongKang Zhu Date: Sat, 21 Mar 2026 13:15:49 -0700 Subject: [PATCH] [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. --- bolt/lib/Rewrite/RewriteInstance.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp index b3208ac024ae..b036b2e8d42d 100644 --- a/bolt/lib/Rewrite/RewriteInstance.cpp +++ b/bolt/lib/Rewrite/RewriteInstance.cpp @@ -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);