================ @@ -109,6 +110,21 @@ static bool IsArtificial(VarDecl const *VD) { cast<Decl>(VD->getDeclContext())->isImplicit()); } +static bool usesDebugTransparent(const Decl *D, const CodeGenModule &CGM) { + if (!D) + return false; + + if (auto *attr = D->getAttr<DebugTransparentAttr>()) { + auto opts = CGM.getCodeGenOpts(); + if (opts.DwarfVersion == 0) { + auto &diags = CGM.getDiags(); + diags.Report(attr->getLocation(), diag::warn_debug_transparent_ignored); ---------------- Michael137 wrote:
Nit: ```suggestion CGM.getDiags().Report(attr->getLocation(), diag::warn_debug_transparent_ignored); ``` 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