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

Daniel Kiss via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 20 16:00:20 PDT 2024


================
@@ -2314,7 +2314,7 @@ void Verifier::verifyFunctionAttrs(FunctionType *FT, AttributeList Attrs,
 
   if (auto A = Attrs.getFnAttr("sign-return-address"); A.isValid()) {
     StringRef S = A.getValueAsString();
-    if (S != "none" && S != "all" && S != "non-leaf")
----------------
DanielKristofKiss wrote:

This isn't right, to support\import the old format the old values and nothing need to accepted here.

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


More information about the cfe-commits mailing list