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(
2032
2032
}
2033
2033
2034
2034
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);
2046
2036
}
2047
2037
2048
2038
// / Merges `target-features` from \TargetOpts and \F, and sets the result in
You can’t perform that action at this time.
0 commit comments