diff options
| author | Anatoly Trosinenko <atrosinenko@accesssoftek.com> | 2025-11-20 17:16:37 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-20 17:16:37 +0300 |
| commit | 4bb4ad477d80f66a267311afe9b656330caf3893 (patch) | |
| tree | ee0d0cf26877bd7754ff127454ca8f6e789513d5 /mlir | |
| parent | e0850825cce17ebab14df41afa6fe19582a65de3 (diff) | |
[AArch64][PAC] Use enum to describe LR signing condition (NFC) (#168548)
Express the condition of signing the return address in a function using
an `enum class` instead of a pair of `bool`s. Define `enum class
SignReturnAddress` with the values corresponding to the three possible
modes that can be requested via "sign-return-address" function
attribute.
Previously, there were two overloads of `shouldSignReturnAddress`
accepting either `const MachineFunction &` or `bool` argument. Due to
pointer-to-bool conversion, when `shouldSignReturnAddress` was
incorrectly called with `const MachineFunction *` argument, the latter
overload was used instead of reporting a compile-time error.
Diffstat (limited to 'mlir')
0 files changed, 0 insertions, 0 deletions
