[clang] [llvm] [CloneFunction][DebugInfo] Avoid cloning DILocalVariables of inlined functions (PR #75385)
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 1 16:08:12 PDT 2024
rnk wrote:
> If the function-local types should not be ODR-uniqued, then dropping the identifier field sounds correct.
I can't speak to the complexities of the alternative, but I'm immediately suspicious of this direction. We have stable manglings for static locals in inline functions and static data members of local classes and static locals in methods in local classes in inline functions... Surely if we can compute a unique mangled name for this local class, we should use it as the identifier and merge it. It seems important that, for size reasons, we figure out a way to do this for lambdas, which are common in inline functions in headers.
https://github.com/llvm/llvm-project/pull/75385
More information about the cfe-commits
mailing list