Skip to content

Commit 7c45e9d

Browse files
authored
Merge pull request rust-lang#135 from vext01/send-func-idx
Send the function index for local variable operands.
2 parents a4e3131 + 933baa8 commit 7c45e9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/YkIR/YkIRWriter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ class YkIRWriter {
238238
void serialiseLocalVariableOperand(Instruction *I, ValueLoweringMap &VLMap) {
239239
auto [BBIdx, InstIdx] = VLMap.at(I);
240240
serialiseOperandKind(OperandKindLocal);
241+
OutStreamer.emitSizeT(getIndex(&M, I->getFunction()));
241242
OutStreamer.emitSizeT(BBIdx);
242243
OutStreamer.emitSizeT(InstIdx);
243244
}

0 commit comments

Comments
 (0)