================
@@ -2367,11 +2370,27 @@ size_t DWARFASTParserClang::ParseChildEnumerators(
     }
 
     if (name && name[0] && got_value) {
-      m_ast.AddEnumerationValueToEnumerationType(
+      auto ECD = m_ast.AddEnumerationValueToEnumerationType(
           clang_type, decl, name, enum_value, enumerator_byte_size * 8);
+      EnumConstants.emplace_back(static_cast<clang::Decl *>(ECD));
       ++enumerators_added;
     }
   }
+
+  clang::EnumDecl *enum_decl =
----------------
Michael137 wrote:

Please move this back into `TypeSystemClang::CompleteTagDeclarationDefinition` 
so we don't need to make `setNumNegativeBits`/`setNumPositiveBits` public. And 
instead just pass the values to `completeDefinition`.

https://github.com/llvm/llvm-project/pull/115005
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to