Skip to content

Commit 0d42aad

Browse files
committed
[Serialization] @execution attribute should serialize behavior (not kind)
The kind is serialize separately, the attribute record itself should store execution behavior kind instead.
1 parent 76d1ea3 commit 0d42aad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Serialization/Serialization.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2894,8 +2894,9 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
28942894
case DeclAttrKind::Execution: {
28952895
auto *theAttr = cast<ExecutionAttr>(DA);
28962896
auto abbrCode = S.DeclTypeAbbrCodes[ExecutionDeclAttrLayout::Code];
2897-
ExecutionDeclAttrLayout::emitRecord(S.Out, S.ScratchRecord, abbrCode,
2898-
(unsigned)theAttr->getKind());
2897+
ExecutionDeclAttrLayout::emitRecord(
2898+
S.Out, S.ScratchRecord, abbrCode,
2899+
static_cast<uint8_t>(theAttr->getBehavior()));
28992900
return;
29002901
}
29012902

0 commit comments

Comments
 (0)