File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,12 @@ namespace {
248248 void writeSILBlock (const SILModule *SILMod);
249249 void writeIndexTables ();
250250
251+ void writeNoOperandLayout (const SILInstruction *I) {
252+ unsigned abbrCode = SILAbbrCodes[SILInstNoOperandLayout::Code];
253+ SILInstNoOperandLayout::emitRecord (Out, ScratchRecord, abbrCode,
254+ (unsigned )I->getKind ());
255+ }
256+
251257 void writeConversionLikeInstruction (const SingleValueInstruction *I,
252258 unsigned attrs);
253259 void writeOneTypeLayout (SILInstructionKind valueKind,
@@ -763,9 +769,7 @@ void SILSerializer::writeSILInstruction(const SILInstruction &SI) {
763769
764770 case SILInstructionKind::UnwindInst:
765771 case SILInstructionKind::UnreachableInst: {
766- unsigned abbrCode = SILAbbrCodes[SILInstNoOperandLayout::Code];
767- SILInstNoOperandLayout::emitRecord (Out, ScratchRecord, abbrCode,
768- (unsigned )SI.getKind ());
772+ writeNoOperandLayout (&SI);
769773 break ;
770774 }
771775 case SILInstructionKind::AllocExistentialBoxInst:
You can’t perform that action at this time.
0 commit comments