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 @@ -2032,17 +2032,7 @@ static void getTrivialDefaultFunctionAttributes(
20322032 }
20332033
20342034 TargetInfo::BranchProtectionInfo BPI (LangOpts);
2035-
2036- if (BPI.SignReturnAddr != LangOptions::SignReturnAddressScopeKind::None) {
2037- FuncAttrs.addAttribute (" sign-return-address" , BPI.getSignReturnAddrStr ());
2038- FuncAttrs.addAttribute (" sign-return-address-key" , BPI.getSignKeyStr ());
2039- }
2040- if (BPI.BranchTargetEnforcement )
2041- FuncAttrs.addAttribute (" branch-target-enforcement" , " true" );
2042- if (BPI.BranchProtectionPAuthLR )
2043- FuncAttrs.addAttribute (" branch-protection-pauth-lr" , " true" );
2044- if (BPI.GuardedControlStack )
2045- FuncAttrs.addAttribute (" guarded-control-stack" , " true" );
2035+ BPI.setFnAttributes (FuncAttrs);
20462036}
20472037
20482038// / Merges `target-features` from \TargetOpts and \F, and sets the result in
You can’t perform that action at this time.
0 commit comments