Skip to content

Commit 0e2a9e1

Browse files
fixup! [Clang][Arm][AArch64] Add branch protection attributes to the defaults.
1 parent 0c31187 commit 0e2a9e1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/lib/CodeGen/CGCall.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,10 +2035,7 @@ static void getTrivialDefaultFunctionAttributes(
20352035

20362036
if (BPI.SignReturnAddr != LangOptions::SignReturnAddressScopeKind::None) {
20372037
FuncAttrs.addAttribute("sign-return-address", BPI.getSignReturnAddrStr());
2038-
FuncAttrs.addAttribute(
2039-
"sign-return-address-key",
2040-
BPI.SignKey == LangOptions::SignReturnAddressKeyKind::AKey ? "a_key"
2041-
: "b_key");
2038+
FuncAttrs.addAttribute("sign-return-address-key", BPI.getSignKeyStr());
20422039
}
20432040
if (BPI.BranchTargetEnforcement)
20442041
FuncAttrs.addAttribute("branch-target-enforcement", "true");

0 commit comments

Comments
 (0)