Skip to content

Commit 10f398c

Browse files
authored
Merge pull request llvm#193 from ptersilie/safepoint_id_const
Make safepoint id a u64 rather than an Operand.
2 parents f9998a9 + 5112a69 commit 10f398c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/YkIR/YkIRWriter.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,10 @@ class YkIRWriter {
579579
assert(I->getCalledFunction()->isIntrinsic());
580580
assert(I->getIntrinsicID() == Intrinsic::experimental_stackmap);
581581
// stackmap ID:
582-
serialiseOperand(I, FLCtxt, I->getOperand(0));
582+
Value *Op = I->getOperand(0);
583+
assert(isa<ConstantInt>(Op));
584+
uint64_t SMId = (cast<ConstantInt>(Op))->getZExtValue();
585+
OutStreamer.emitInt64(SMId);
583586

584587
// num_lives:
585588
OutStreamer.emitInt32(I->arg_size() - 2);

0 commit comments

Comments
 (0)