[clang] [llvm] [Clang][AArch64] Command-line options for A-profile's Sign Return Address Hardening (PR #176171)

Victor Campos via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 05:55:06 PDT 2026


================
@@ -3699,13 +3699,17 @@ bool Sema::checkTargetAttr(SourceLocation LiteralLoc, StringRef AttrStr) {
              << Unsupported << None << CurFeature << Target;
   }
 
+  if (ParsedAttrs.BranchProtection.empty()) {
+    if (!ParsedAttrs.SignReturnAddrHardening.empty())
+      Diag(LiteralLoc, diag::warn_attribute_harden_pac_ret_requires_pac_ret);
+    return false;
----------------
vhscampos wrote:

Fixed. Thanks

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


More information about the cfe-commits mailing list