[Lldb-commits] [lldb] [lldb] Fix crash when adding members to an "incomplete" type (PR #102116)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 7 03:45:16 PDT 2024


https://github.com/Michael137 approved this pull request.

LGTM, thanks!

So the actual problem is that the ASTImporter will only copy over the definition to the destination decl if the source decl `isCompleteDefinition`. So then when we tried to add the typedef decl to the `CXXRecordDecl` that the ASTImporter created for `A`, it would try to query its definition which didn't get copied over, and hence we assert.

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


More information about the lldb-commits mailing list