Skip to content

Commit d3cbf6c

Browse files
committed
SIL: All declarations have access after type checking
1 parent 498e6dc commit d3cbf6c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/SIL/SIL.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ FormalLinkage swift::getDeclLinkage(const ValueDecl *D) {
4444
if (isa<ClangModuleUnit>(fileContext))
4545
return FormalLinkage::PublicNonUnique;
4646

47-
if (!D->hasAccess()) {
48-
assert(D->getDeclContext()->isLocalContext());
49-
return FormalLinkage::Private;
50-
}
51-
5247
switch (D->getEffectiveAccess()) {
5348
case AccessLevel::Public:
5449
case AccessLevel::Open:

0 commit comments

Comments
 (0)