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 {
248
248
void writeSILBlock (const SILModule *SILMod);
249
249
void writeIndexTables ();
250
250
251
+ void writeNoOperandLayout (const SILInstruction *I) {
252
+ unsigned abbrCode = SILAbbrCodes[SILInstNoOperandLayout::Code];
253
+ SILInstNoOperandLayout::emitRecord (Out, ScratchRecord, abbrCode,
254
+ (unsigned )I->getKind ());
255
+ }
256
+
251
257
void writeConversionLikeInstruction (const SingleValueInstruction *I,
252
258
unsigned attrs);
253
259
void writeOneTypeLayout (SILInstructionKind valueKind,
@@ -763,9 +769,7 @@ void SILSerializer::writeSILInstruction(const SILInstruction &SI) {
763
769
764
770
case SILInstructionKind::UnwindInst:
765
771
case SILInstructionKind::UnreachableInst: {
766
- unsigned abbrCode = SILAbbrCodes[SILInstNoOperandLayout::Code];
767
- SILInstNoOperandLayout::emitRecord (Out, ScratchRecord, abbrCode,
768
- (unsigned )SI.getKind ());
772
+ writeNoOperandLayout (&SI);
769
773
break ;
770
774
}
771
775
case SILInstructionKind::AllocExistentialBoxInst:
You can’t perform that action at this time.
0 commit comments