================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits