llvm-project
44c9c2a7 - [lldb] Require base classes that share a pointer to be pointers (NFC) (#243612)

Commit
1 day ago
[lldb] Require base classes that share a pointer to be pointers (NFC) (#243612) Currently ValueObjectChild gives a base class child the pointer value of its parent whenever the parent's type has eTypeInstanceIsPointer. That is wrong for a base class whose instances aren't pointers, such as an Objective-C base class of a Swift class, which lives at the address that the pointer points to. No type system in LLVM sets eTypeInstanceIsPointer, but the Swift type system does, and the Swift fork works around this by comparing the type systems of the parent and the child. This patch fixes this by also requiring the type of the base class to have eTypeInstanceIsPointer. Assisted-by: Claude
Author
Parents
Loading