[clang] [Clang][ARM] Call constructor on BranchTargetInfo. (PR #98307)

Daniel Kiss via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 10 08:20:48 PDT 2024


================
@@ -1434,7 +1434,14 @@ class TargetInfo : public TransferrableTargetInfo,
     }
 
   public:
-    BranchProtectionInfo() = default;
+    BranchProtectionInfo() {
+      SignReturnAddr = LangOptions::SignReturnAddressScopeKind::None;
+      SignKey = LangOptions::SignReturnAddressKeyKind::AKey;
+      BranchTargetEnforcement = false;
+      BranchProtectionPAuthLR = false;
+      GuardedControlStack = false;
+    };
----------------
DanielKristofKiss wrote:

right, added and clang-formated.

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


More information about the cfe-commits mailing list