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

Michael Buch via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 3 01:34:35 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 the element width.
+template <typename T, unsigned InlineN = 64>
----------------
Michael137 wrote:

`InlineN` is never passed by call-sites. If that's intentional, lets remove it and use `64` directly in the `SmallVector` instantiation 

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


More information about the cfe-commits mailing list