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

Daniel Kiss via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 10 07:49:40 PDT 2024


================
@@ -141,7 +141,7 @@ class ARMTargetCodeGenInfo : public TargetCodeGenInfo {
       ParsedTargetAttr Attr =
           CGM.getTarget().parseTargetAttr(TA->getFeaturesStr());
       if (!Attr.BranchProtection.empty()) {
-        TargetInfo::BranchProtectionInfo BPI;
+        TargetInfo::BranchProtectionInfo BPI{};
----------------
DanielKristofKiss wrote:

Right, now unnecessary, maybe more stylish.

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


More information about the cfe-commits mailing list