[Lldb-commits] [lldb] [lldb][SymbolFileDWARF] Ignore Declaration when searching through UniqueDWARFASTTypeList in C++ (PR #120809)
Zequan Wu via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 20 16:31:52 PST 2024
ZequanWu wrote:
> This particular example was fixed by https://github.com/llvm/llvm-project/pull/120569 but this still feels a little inconsistent. I'm not entirely sure we can get into that situation after that patch anymore. So the only test-case I could come up with was the unit-test which calls MapDeclDIEToDefDIE directly.
That sounds still possible to happens without this change: parse decl die -> complete its type -> update the map with def die and non-zeroed def die -> parse a second decl die for the same type -> without this change, it will fail to find the existing type in the map because zeroed declaration.
https://github.com/llvm/llvm-project/pull/120809
More information about the lldb-commits
mailing list