Skip to content

Commit

Permalink
Send the function index for local variable operands.
Browse files Browse the repository at this point in the history
  • Loading branch information
vext01 committed Apr 19, 2024
1 parent a4e3131 commit 933baa8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/YkIR/YkIRWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ class YkIRWriter {
void serialiseLocalVariableOperand(Instruction *I, ValueLoweringMap &VLMap) {
auto [BBIdx, InstIdx] = VLMap.at(I);
serialiseOperandKind(OperandKindLocal);
OutStreamer.emitSizeT(getIndex(&M, I->getFunction()));
OutStreamer.emitSizeT(BBIdx);
OutStreamer.emitSizeT(InstIdx);
}
Expand Down

0 comments on commit 933baa8

Please sign in to comment.