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

Daniel Kiss via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 08:44:55 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" }
----------------
DanielKristofKiss wrote:

Module flags do nothing from here, I dropped them from the test.
The fronted will append these attributes as the generated functions created see: #83153


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


More information about the llvm-commits mailing list