File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -2024,17 +2024,7 @@ static void getTrivialDefaultFunctionAttributes(
20242024 }
20252025
20262026 TargetInfo::BranchProtectionInfo BPI (LangOpts);
2027-
2028- if (BPI.SignReturnAddr != LangOptions::SignReturnAddressScopeKind::None) {
2029- FuncAttrs.addAttribute (" sign-return-address" , BPI.getSignReturnAddrStr ());
2030- FuncAttrs.addAttribute (" sign-return-address-key" , BPI.getSignKeyStr ());
2031- }
2032- if (BPI.BranchTargetEnforcement )
2033- FuncAttrs.addAttribute (" branch-target-enforcement" , " true" );
2034- if (BPI.BranchProtectionPAuthLR )
2035- FuncAttrs.addAttribute (" branch-protection-pauth-lr" , " true" );
2036- if (BPI.GuardedControlStack )
2037- FuncAttrs.addAttribute (" guarded-control-stack" , " true" );
2027+ BPI.setFnAttributes (FuncAttrs);
20382028}
20392029
20402030// / Merges `target-features` from \TargetOpts and \F, and sets the result in
You can’t perform that action at this time.
0 commit comments