================ @@ -909,6 +909,24 @@ void PPCAsmPrinter::emitInstruction(const MachineInstr *MI) { // Lower multi-instruction pseudo operations. switch (MI->getOpcode()) { default: break; + case TargetOpcode::PATCHABLE_FUNCTION_ENTER: { + assert(!Subtarget->isAIXABI() && + "AIX does not support patchable function entry!"); + // PATCHABLE_FUNCTION_ENTER on little endian is for XRAY support which is + // handled in PPCLinuxAsmPrinter. + if (MAI->isLittleEndian()) + return; + const Function &F = MI->getParent()->getParent()->getFunction(); ---------------- nickdesaulniers wrote:
```suggestion const Function &F = MF->getFunction(); ``` https://github.com/llvm/llvm-project/pull/92997 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits