[Lldb-commits] [lldb] [lldb][DWARF] Fix adding children to clang type that hasn't started definition. (PR #93839)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu May 30 09:32:24 PDT 2024


================
@@ -2232,6 +2232,10 @@ bool DWARFASTParserClang::CompleteRecordType(const DWARFDIE &die,
       // For objective C we don't start the definition when the class is
       // created.
       TypeSystemClang::StartTagDeclarationDefinition(clang_type);
+    } else {
+      assert(
+          clang_type.IsBeingDefined() &&
+          "The clang type should already start its definition at this point.");
----------------
Michael137 wrote:

Perhaps:
```suggestion
          "Trying to complete a definition without a prior call to StartTagDeclarationDefinition.");
```
?

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


More information about the lldb-commits mailing list