[llvm] [AArch64] Codegen for AArch64 Return Address Signing Hardening (PR #176187)

Victor Campos via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 05:50:45 PDT 2026


================
@@ -7144,8 +7144,10 @@ bool llvm::UpgradeModuleFlags(Module &M) {
 
     // Upgrade branch protection and return address signing module flags. The
     // module flag behavior for these fields were Error and now they are Min.
+    // The one exception is "sign-return-address-harden".
     if (ID->getString() == "branch-target-enforcement" ||
-        ID->getString().starts_with("sign-return-address")) {
+        ID->getString() == "sign-return-address" ||
+        ID->getString() == "sign-return-address-key") {
----------------
vhscampos wrote:

Thanks for bringing it up. I am surprised that my mistake on the module flag naming was not caught by any test though.

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


More information about the llvm-commits mailing list