[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

Ilia Kuklin via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 31 14:17:02 PST 2025


================
@@ -2367,11 +2369,36 @@ size_t DWARFASTParserClang::ParseChildEnumerators(
     }
 
     if (name && name[0] && got_value) {
-      m_ast.AddEnumerationValueToEnumerationType(
+      auto ECD = m_ast.AddEnumerationValueToEnumerationType(
----------------
kuilpd wrote:

Yes, but I didn't want to move `isRepresentableIntegerValue` outside of `SemaDecl.cpp`, so I moved only the part that checks the bits. Seemed unnecessary to both move the static function and also use call it from LLDB where the result wouldn't be used anyway.

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


More information about the lldb-commits mailing list