aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorDaniil Kovalev <dkovalev@accesssoftek.com>2025-02-05 11:39:27 +0300
committerGitHub <noreply@github.com>2025-02-05 11:39:27 +0300
commit84b0c128a751acfbf5b439edc724ba27d1da653e (patch)
treeded9c0dc0cce3d5b61385a036fa8c8e2e73ca896 /llvm/lib/CodeGen/MachineScheduler.cpp
parentad38c4c625765c0319433b8c87852fbe40a1f7fd (diff)
downloadllvm-84b0c128a751acfbf5b439edc724ba27d1da653e.zip
llvm-84b0c128a751acfbf5b439edc724ba27d1da653e.tar.gz
llvm-84b0c128a751acfbf5b439edc724ba27d1da653e.tar.bz2
[PAC] Do not support some values of branch-protection with ptrauth-returns (#125280)
This patch does two things. 1. Previously, when checking driver arguments, we emitted an error for unsupported values of `-mbranch-protection` when using pauthtest ABI. The reason for that was ptrauth-returns being enabled as part of pauthtest. This patch changes the check against pauthtest to a check against ptrauth-returns. 2. Similarly, check against values of the following function attribute which are unsupported with ptrauth-returns: `__attribute__((target("branch-protection=XXX`. Note that existing `validateBranchProtection` function is used, and current behavior is to ignore the unsupported attribute value, so no error is emitted.
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions