mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -3548,6 +3548,13 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
|
||||
case DeclAttrKind::Lifetime: {
|
||||
return;
|
||||
}
|
||||
case DeclAttrKind::Nonexhaustive: {
|
||||
auto *theAttr = cast<NonexhaustiveAttr>(DA);
|
||||
auto abbrCode = S.DeclTypeAbbrCodes[NonexhaustiveDeclAttrLayout::Code];
|
||||
NonexhaustiveDeclAttrLayout::emitRecord(S.Out, S.ScratchRecord, abbrCode,
|
||||
(unsigned)theAttr->getMode());
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user