Skip to content

Commit d862ab0

Browse files
committed
Deserialise instruction type.
1 parent f1803c1 commit d862ab0

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
@@ -180,6 +180,7 @@ class YkIRWriter {
180180
/// Does a naiave serialisation of an LLVM instruction by iterating over its
181181
/// operands and serialising them in turn.
182182
void serialiseInstGeneric(Instruction *I, OpCode Opc) {
183+
OutStreamer.emitSizeT(typeIndex(I->getType()));
183184
serialiseOpcode(Opc);
184185
OutStreamer.emitInt32(I->getNumOperands());
185186
for (Value *O : I->operands()) {

0 commit comments

Comments
 (0)