[llvm] [BOLT] Fix references in ignored functions in CFG state (PR #140678)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Tue May 20 12:27:34 PDT 2025


================
@@ -3764,6 +3773,8 @@ MCSymbol *BinaryFunction::addEntryPointAtOffset(uint64_t Offset) {
   if (EntrySymbol)
     return EntrySymbol;
 
+  assert(CurrentState == State::Empty || CurrentState == State::Disassembled);
----------------
maksfb wrote:

One of our internal tests failed. The newly ignored function had a call to a secondary entry point that caused the earlier assertion to fire.

https://github.com/llvm/llvm-project/pull/140678


More information about the llvm-commits mailing list