[clang] [llvm] [clang] Add "debug_transparent" attribute (PR #109490)
Michael Buch via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 23 10:00:32 PDT 2024
================
@@ -4160,6 +4178,8 @@ llvm::DISubprogram *CGDebugInfo::getFunctionFwdDeclOrStub(GlobalDecl GD,
if (Stub) {
Flags |= getCallSiteRelatedAttrs();
SPFlags |= llvm::DISubprogram::SPFlagDefinition;
+ if (usesDebugTransparent(FD, CGM))
----------------
Michael137 wrote:
Do we really need this?
AFAICT, the stub is only generated when we do `EmitInlinedInheritingCXXConstructorCall`. Those inheriting constructors don't support the `debug_transparent` attribute anyway. I think it would be sufficient to just add a test that ensures we do the right thing for inlined functions.
https://github.com/llvm/llvm-project/pull/109490
More information about the cfe-commits
mailing list