================ @@ -4160,6 +4178,8 @@ llvm::DISubprogram *CGDebugInfo::getFunctionFwdDeclOrStub(GlobalDecl GD, if (Stub) { Flags |= getCallSiteRelatedAttrs(); SPFlags |= llvm::DISubprogram::SPFlagDefinition; + if (usesDebugTransparent(FD, CGM)) ---------------- augusto2112 wrote:
Turns out adding this flag only in `emitFunction` is enough to cover all cases. 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