diff --git a/llvm/lib/YkIR/YkIRWriter.cpp b/llvm/lib/YkIR/YkIRWriter.cpp index ed1c58cf751d7c..29cef1b0a6cdaa 100644 --- a/llvm/lib/YkIR/YkIRWriter.cpp +++ b/llvm/lib/YkIR/YkIRWriter.cpp @@ -579,7 +579,10 @@ class YkIRWriter { assert(I->getCalledFunction()->isIntrinsic()); assert(I->getIntrinsicID() == Intrinsic::experimental_stackmap); // stackmap ID: - serialiseOperand(I, FLCtxt, I->getOperand(0)); + Value *Op = I->getOperand(0); + assert(isa(Op)); + uint64_t SMId = (cast(Op))->getZExtValue(); + OutStreamer.emitInt64(SMId); // num_lives: OutStreamer.emitInt32(I->arg_size() - 2);