mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization] @execution attribute should serialize behavior (not kind)
The kind is serialize separately, the attribute record itself should store execution behavior kind instead.
This commit is contained in:
@@ -2894,8 +2894,9 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
|
||||
case DeclAttrKind::Execution: {
|
||||
auto *theAttr = cast<ExecutionAttr>(DA);
|
||||
auto abbrCode = S.DeclTypeAbbrCodes[ExecutionDeclAttrLayout::Code];
|
||||
ExecutionDeclAttrLayout::emitRecord(S.Out, S.ScratchRecord, abbrCode,
|
||||
(unsigned)theAttr->getKind());
|
||||
ExecutionDeclAttrLayout::emitRecord(
|
||||
S.Out, S.ScratchRecord, abbrCode,
|
||||
static_cast<uint8_t>(theAttr->getBehavior()));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user