================ @@ -163,8 +163,15 @@ class AArch64AsmPrinter : public AsmPrinter { // Emit the sequence for AUT or AUTPAC. void emitPtrauthAuthResign(const MachineInstr *MI); - // Emit the sequence to compute a discriminator into x17, or reuse AddrDisc. - unsigned emitPtrauthDiscriminator(uint16_t Disc, unsigned AddrDisc); + // Emit the sequence to compute the discriminator. + // ScratchReg should be x16/x17. ---------------- kovdan01 wrote:
Probably it's worth adding an assertion for this pre-condition (I might be missing smth but I don't see it) https://github.com/llvm/llvm-project/pull/115185 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits