[all-commits] [llvm/llvm-project] eb06c7: [lldb] Fix assertion caused by invalid SupportFile...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu Oct 9 12:05:23 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb06c7e7d25da30dd611812a9bec56bf5c3f5ac3
      https://github.com/llvm/llvm-project/commit/eb06c7e7d25da30dd611812a9bec56bf5c3f5ac3
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2025-10-09 (Thu, 09 Oct 2025)

  Changed paths:
    M lldb/source/Symbol/Function.cpp

  Log Message:
  -----------
  [lldb] Fix assertion caused by invalid SupportFileSP (#162710)

SupportFileSP should never be null, and instead should use a default
constructed SupportFile to represent an invalid instance. This is
because the class used to be a value type before it became polymorphic.

We have various places in LLDB where we check this precondition,
including in DisplaySourceLinesWithLineNumbers. The assertion was
tripped when calling GetStartLineSourceInfo which starts by resetting
the SupportFileSP and has a series of early returns which leave the
shared pointer in that state.

rdar://161607247



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list