Skip to content

Commit 82b2e13

Browse files
committed
Fix incorrect serialisation of unimplemented instructions.
They were missing a type index, which would cause deserialisation issues if the IR contained unimplemented instructions.
1 parent 222d9e3 commit 82b2e13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/YkIR/YkIRWriter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ class YkIRWriter {
365365
void serialiseUnimplementedInstruction(Instruction *I,
366366
ValueLoweringMap &VLMap,
367367
unsigned BBIdx, unsigned &InstIdx) {
368+
// type_index:
369+
OutStreamer.emitSizeT(typeIndex(I->getType()));
368370
// opcode:
369371
serialiseOpcode(UnimplementedInstruction);
370372
// num_operands:

0 commit comments

Comments
 (0)