Skip to content

Commit 4b595b1

Browse files
authored
Merge pull request #78834 from xedin/fix-serialization-issue-with-execution-attr
[Serialization] `@execution` attribute should serialize behavior (not…
2 parents d060f01 + 0d42aad commit 4b595b1

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)