Skip to content

Commit

Permalink
Make safepoint id a u64 rather than an Operand.
Browse files Browse the repository at this point in the history
  • Loading branch information
ptersilie committed Aug 13, 2024
1 parent 7fc95eb commit d97f43b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion llvm/lib/YkIR/YkIRWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ConstantInt>(Op));
uint64_t SMId = (cast<ConstantInt>(Op))->getZExtValue();
OutStreamer.emitInt64(SMId);

// num_lives:
OutStreamer.emitInt32(I->arg_size() - 2);
Expand Down

0 comments on commit d97f43b

Please sign in to comment.