mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge branch 'main' into cdecl-global-function-checking
This commit is contained in:
@@ -2938,15 +2938,6 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
|
||||
}
|
||||
#include "swift/AST/DeclAttr.def"
|
||||
|
||||
case DeclAttrKind::Execution: {
|
||||
auto *theAttr = cast<ExecutionAttr>(DA);
|
||||
auto abbrCode = S.DeclTypeAbbrCodes[ExecutionDeclAttrLayout::Code];
|
||||
ExecutionDeclAttrLayout::emitRecord(
|
||||
S.Out, S.ScratchRecord, abbrCode,
|
||||
static_cast<uint8_t>(theAttr->getBehavior()));
|
||||
return;
|
||||
}
|
||||
|
||||
case DeclAttrKind::ABI: {
|
||||
auto *theAttr = cast<ABIAttr>(DA);
|
||||
auto abbrCode = S.DeclTypeAbbrCodes[ABIDeclAttrLayout::Code];
|
||||
@@ -3472,9 +3463,9 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
|
||||
case DeclAttrKind::Nonisolated: {
|
||||
auto *theAttr = cast<NonisolatedAttr>(DA);
|
||||
auto abbrCode = S.DeclTypeAbbrCodes[NonisolatedDeclAttrLayout::Code];
|
||||
NonisolatedDeclAttrLayout::emitRecord(S.Out, S.ScratchRecord, abbrCode,
|
||||
theAttr->isUnsafe(),
|
||||
theAttr->isImplicit());
|
||||
NonisolatedDeclAttrLayout::emitRecord(
|
||||
S.Out, S.ScratchRecord, abbrCode,
|
||||
static_cast<uint8_t>(theAttr->getModifier()), theAttr->isImplicit());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -4755,6 +4746,7 @@ public:
|
||||
param->isCompileTimeLiteral(),
|
||||
param->isConstVal(),
|
||||
param->isSending(),
|
||||
param->isCallerIsolated(),
|
||||
getRawStableDefaultArgumentKind(argKind),
|
||||
S.addTypeRef(defaultExprType),
|
||||
getRawStableActorIsolationKind(isolation.getKind()),
|
||||
|
||||
Reference in New Issue
Block a user