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

Daniel Kiss via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 19 09:09:22 PDT 2024


================
@@ -1398,6 +1400,42 @@ class TargetInfo : public TransferrableTargetInfo,
       }
       llvm_unreachable("Unexpected SignReturnAddressKeyKind");
     }
+
+  public:
+    BranchProtectionInfo() = default;
----------------
DanielKristofKiss wrote:

We need the default constructor:
e.g https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/SemaDeclAttr.cpp#L3481 
https://github.com/llvm/llvm-project/blob/main/clang/lib/CodeGen/Targets/ARM.cpp#L144

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


More information about the cfe-commits mailing list