[clang] [llvm] [DebugInfo] Emit DW_AT_const_value for constexpr array static members (PR #182442)

Vladislav Dzhidzhoev via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 2 03:42:13 PST 2026


================
@@ -2081,6 +2081,56 @@ void CGDebugInfo::CollectRecordLambdaFields(
   }
 }
 
+/// Build an llvm::ConstantDataArray from the initialized elements of an
+/// APValue array, using the narrowest integer type that fits ElemBitWidth.
----------------
dzhidzhoev wrote:

ElemBitWidth is not an argument of the function, so it's better not to mention it in the function's docstring.

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


More information about the cfe-commits mailing list