Skip to content

Commit ca987d3

Browse files
committed
146488 ds
1 parent 614e4dd commit ca987d3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,6 +2225,9 @@ void AArch64AsmPrinter::emitPtrauthSign(const MachineInstr *MI) {
22252225
bool IsZeroDisc = DiscReg == AArch64::XZR;
22262226
unsigned Opc = getPACOpcodeForKey(Key, IsZeroDisc);
22272227

2228+
if (emitDeactivationSymbolRelocation(MI->getDeactivationSymbol()))
2229+
return;
2230+
22282231
// paciza x16 ; if IsZeroDisc
22292232
// pacia x16, x17 ; if !IsZeroDisc
22302233
MCInst PACInst;

llvm/lib/Target/AArch64/AArch64InstrInfo.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,6 +2170,7 @@ let Predicates = [HasPAuth] in {
21702170
let Size = 12;
21712171
let Defs = [X17];
21722172
let usesCustomInserter = 1;
2173+
let supportsDeactivationSymbol = 1;
21732174
}
21742175

21752176
def : Pat<(int_ptrauth_sign GPR64:$Val, timm:$Key, GPR64noip:$AddrDisc),

0 commit comments

Comments
 (0)