[all-commits] [llvm/llvm-project] 76edf7: Reland: [lldb] Fix crash missing MSInheritanceAttr...

Stefan Gränitz via All-commits all-commits at lists.llvm.org
Thu Oct 24 04:50:43 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76edf72501cd6f66788c631fada95972a797a4a6
      https://github.com/llvm/llvm-project/commit/76edf72501cd6f66788c631fada95972a797a4a6
  Author: Stefan Gränitz <stefan.graenitz at gmail.com>
  Date:   2024-10-24 (Thu, 24 Oct 2024)

  Changed paths:
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
    A lldb/test/Shell/SymbolFile/DWARF/x86/member-pointers.cpp

  Log Message:
  -----------
  Reland: [lldb] Fix crash missing MSInheritanceAttr with DWARF on Windows (#112928)

Member pointers refer to data or function members of a `CXXRecordDecl`,
which require a `MSInheritanceAttr` in order to be complete. Without that
we cannot calculate the size of a member pointer in memory. The attempt
has been causing a crash further down in the clang AST context. In order
to implement the feature, DWARF will need a new attribtue to convey the
information. For the moment, this patch teaches LLDB to handle to
situation and avoid the crash.



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