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

Nick Desaulniers via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 29 11:05:31 PST 2024


================
@@ -1369,13 +1369,50 @@ class TargetInfo : public TransferrableTargetInfo,
   }
 
   struct BranchProtectionInfo {
-    LangOptions::SignReturnAddressScopeKind SignReturnAddr =
-        LangOptions::SignReturnAddressScopeKind::None;
-    LangOptions::SignReturnAddressKeyKind SignKey =
-        LangOptions::SignReturnAddressKeyKind::AKey;
-    bool BranchTargetEnforcement = false;
-    bool BranchProtectionPAuthLR = false;
-    bool GuardedControlStack = false;
+    LangOptions::SignReturnAddressScopeKind SignReturnAddr;
+    LangOptions::SignReturnAddressKeyKind SignKey;
+    bool BranchTargetEnforcement;
+    bool BranchProtectionPAuthLR;
+    bool GuardedControlStack;
+
+    BranchProtectionInfo() = default;
----------------
nickdesaulniers wrote:

Is this constructor used anywhere?

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


More information about the cfe-commits mailing list