Skip to content

Commit 5d160b6

Browse files
committed
Fix compile error
1 parent 1719f0c commit 5d160b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Serialization/Serialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2710,7 +2710,7 @@ void Serializer::writeDecl(const Decl *D) {
27102710
!value->getDeclContext()->isLocalContext() &&
27112711
(access <= swift::AccessLevel::FilePrivate ||
27122712
(storage &&
2713-
storage->getAccessLevel() == swift::AccessLevel::Internal &&
2713+
storage->getFormalAccess() == swift::AccessLevel::Internal &&
27142714
storage->hasPrivateAccessor()));
27152715

27162716
if (shouldEmitFilenameForPrivate || shouldEmitPrivateDescriminator) {

0 commit comments

Comments
 (0)