[clang] [clang][DebugInfo] Emit global variable definitions for static data members with constant initializers (PR #70639)

Michael Buch via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 30 11:02:58 PDT 2023


Michael137 wrote:

> > Should not we remove constant initializer from the type definition if we have a DW_TAG_variable with a DW_AT_const_value now?
> 
> Yep, +1 to this. This is where the type normalization benefit would come from - no longer having this const value on the member declaration, but only on the definition.

Makes sense. I'll create a separate PR for that, unless people are fine with doing that as part of this change

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


More information about the cfe-commits mailing list