[clang] [llvm] Disable PGO instrumentation on naked function (PR #75224)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 12 10:40:44 PST 2023
================
@@ -892,6 +892,10 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,
}
}
+ if (FD->hasAttr<NakedAttr>()) {
----------------
MaskRay wrote:
This should not be needed. The llvm change is sufficient to work with all frontends including clang.
https://github.com/llvm/llvm-project/pull/75224
More information about the cfe-commits
mailing list