diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index dcaf76773236f2d..17de43361a881c4 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1987,14 +1987,13 @@ void AsmPrinter::emitFunctionBody() { // statically into the blockmap at AOT compile time. // // Some things that look like calls in IR don't actually emit a - // call into the binary. Namely stackmap and statepoint intrinsics. + // call into the binary. Namely a stackmap intrinsic. // - // Note that a patchpoint intrinsic, although similar to stackmap and - // statepoint intrinsics, does actually emit a call in the binary, - // so we DO need to include those callsites. + // Note that patchpoint and statepoint intrinsics, although similar to + // the stackmap intrinsic, do actually emit a call in the binary, so we + // DO need to include those callsites. if (YkExtendedLLVMBBAddrMapSection && MI.isCall() && - (MI.getOpcode() != TargetOpcode::STACKMAP) && - (MI.getOpcode() != TargetOpcode::STATEPOINT)) { + (MI.getOpcode() != TargetOpcode::STACKMAP)) { // Record the address of the call instruction itself. MCSymbol *YkPreCallSym = MF->getContext().createTempSymbol("yk_precall", true);