[clang] [llvm] [Clang][ARM][AArch64] Alway emit protection attributes for functions. (PR #82819)

Tomas Matheson via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 22 05:21:12 PDT 2024


================
@@ -58,8 +58,8 @@ entry:
 ;; CHECK-NEXT: .cfi_negate_ra_state
 
 attributes #0 = { norecurse nounwind readnone "sign-return-address"="all" "sign-return-address-key"="b_key" }
-attributes #1 = { noinline }
-attributes #2 = { nofree noinline norecurse nounwind writeonly }
+attributes #1 = { noinline "sign-return-address"="all" "sign-return-address-key"="b_key" }
+attributes #2 = { nofree noinline norecurse nounwind writeonly "sign-return-address"="all" "sign-return-address-key"="b_key" }
----------------
tmatheson-arm wrote:

I don't understand what is going on between the `llvm.module.flags` and the function attributes. Are these function attributes necessary additions here? Should the module flags be removed from these tests?

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


More information about the cfe-commits mailing list