[clang] [clang][PAC] ptrauth_qualifier and ptrauth_intrinsic should only be available on Darwin (PR #153912)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 16 02:13:13 PDT 2025


================
@@ -1089,6 +1089,7 @@ static void ComputeDATE_TIME(SourceLocation &DATELoc, SourceLocation &TIMELoc,
 /// specified by the identifier as a standard language feature.
 static bool HasFeature(const Preprocessor &PP, StringRef Feature) {
   const LangOptions &LangOpts = PP.getLangOpts();
+  const TargetInfo &Target = PP.getTargetInfo();
----------------
ojhunt wrote:

It's used in the FEATURE() macro below for the darwin restriction on the feature checks

https://github.com/llvm/llvm-project/pull/153912


More information about the cfe-commits mailing list