[llvm] [AArch64][PAC] Fix the list of registers clobbered by PAUTH_EPILOGUE (PR #220190)
Victor Campos via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 2 01:00:33 PDT 2026
================
@@ -11781,7 +11781,7 @@ void AArch64InstrInfo::createPauthEpilogueInstr(MachineBasicBlock &MBB,
if (AFL.getArgumentStackToRestore(MF, MBB)) {
Builder.addReg(AArch64::X17, RegState::ImplicitDefine);
Builder.addReg(AArch64::X16, RegState::ImplicitDefine);
- if (Subtarget.hasPAuthLR())
+ if (AFI->branchProtectionPAuthLR())
----------------
vhscampos wrote:
Does it depend only on `AFI->branchProtectionPAuthLR()` and not also on `Subtarget.hasPAuthLR()` in any way? Just to confirm
https://github.com/llvm/llvm-project/pull/220190
More information about the llvm-commits
mailing list