Skip to content

Commit 6325f05

Browse files
committed
[ClangImporter] Stop setting accessor's access level in SwiftDeclSynthesizer::createConstant
1 parent af9fc44 commit 6325f05

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/ClangImporter/SwiftDeclSynthesizer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,6 @@ ValueDecl *SwiftDeclSynthesizer::createConstant(Identifier name,
426426
/*ThrowsLoc=*/SourceLoc(), /*ThrownType=*/TypeLoc(),
427427
params, type, dc);
428428
func->setStatic(isStatic);
429-
func->setAccess(isStatic ? AccessLevel::Public
430-
: getOverridableAccessLevel(dc));
431429
func->setIsObjC(false);
432430
func->setIsDynamic(false);
433431

0 commit comments

Comments
 (0)