From 933baa80220643c1f0c379266ae99eb44aee2c9f Mon Sep 17 00:00:00 2001 From: Edd Barrett Date: Fri, 19 Apr 2024 16:39:30 +0100 Subject: [PATCH] Send the function index for local variable operands. --- llvm/lib/YkIR/YkIRWriter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/YkIR/YkIRWriter.cpp b/llvm/lib/YkIR/YkIRWriter.cpp index 4de9d9d20e7d15..df7fdc10ac2499 100644 --- a/llvm/lib/YkIR/YkIRWriter.cpp +++ b/llvm/lib/YkIR/YkIRWriter.cpp @@ -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); }