Skip to content

Commit 256226d

Browse files
committed
[Serialization] Fix isUserAccessible serialization on functions only
1 parent 2f7e0d4 commit 256226d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/Serialization/Deserialization.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3194,14 +3194,16 @@ class DeclDeserializer {
31943194
fn->setForcedStaticDispatch(hasForcedStaticDispatch);
31953195
ctx.evaluator.cacheOutput(NeedsNewVTableEntryRequest{fn},
31963196
std::move(needsNewVTableEntry));
3197-
fn->setUserAccessible(isUserAccessible);
31983197

31993198
if (opaqueReturnTypeID) {
32003199
ctx.evaluator.cacheOutput(
32013200
OpaqueResultTypeRequest{fn},
32023201
cast<OpaqueTypeDecl>(MF.getDecl(opaqueReturnTypeID)));
32033202
}
32043203

3204+
if (!isAccessor)
3205+
fn->setUserAccessible(isUserAccessible);
3206+
32053207
return fn;
32063208
}
32073209

lib/Serialization/ModuleFormat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
5555
/// describe what change you made. The content of this comment isn't important;
5656
/// it just ensures a conflict if two people change the module format.
5757
/// Don't worry about adhering to the 80-column limit for this line.
58-
const uint16_t SWIFTMODULE_VERSION_MINOR = 573; // @async on SILFunctionType
58+
const uint16_t SWIFTMODULE_VERSION_MINOR = 574; // reapply isUserAccessible
5959

6060
/// A standard hash seed used for all string hashes in a serialized module.
6161
///

0 commit comments

Comments
 (0)