[Lldb-commits] [lldb] [lldb][SymbolFileDWARF] CompleteType: Lookup type in the declaration DIE's SymbolFile (PR #120569)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 19 07:02:57 PST 2024


================
@@ -1593,7 +1593,9 @@ bool SymbolFileDWARF::CompleteType(CompilerType &compiler_type) {
   DWARFASTParser *dwarf_ast = GetDWARFParser(*def_die.GetCU());
   if (!dwarf_ast)
     return false;
-  Type *type = GetDIEToType().lookup(decl_die.GetDIE());
+  Type *type = decl_die.GetDWARF()->GetDIEToType().lookup(decl_die.GetDIE());
+  assert(type);
+
----------------
Michael137 wrote:

We probably need to use `Type::CopyType` here when inserting into the map

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


More information about the lldb-commits mailing list