File tree Expand file tree Collapse file tree 3 files changed +1
-58
lines changed Expand file tree Collapse file tree 3 files changed +1
-58
lines changed Original file line number Diff line number Diff line change @@ -651,14 +651,6 @@ SILLinkage SILDeclRef::getDefinitionLinkage() const {
651651 effectiveAccess = std::max (effectiveAccess, AccessLevel::Internal);
652652 }
653653
654- // Declarations with a @_silgen_name attribute and no body may be forward
655- // declarations of functions defined in another module. Therefore they must
656- // always have external (public) linkage, regardless of declared access level.
657- if (auto afd = getAbstractFunctionDecl ()) {
658- if (!afd->hasBody () && afd->getAttrs ().hasAttribute <SILGenNameAttr>())
659- effectiveAccess = AccessLevel::Public;
660- }
661-
662654 switch (effectiveAccess) {
663655 case AccessLevel::Private:
664656 case AccessLevel::FilePrivate:
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ func throwJazzHandsTyped() throws(SillyError) {
229229// not available, so pass it through an UnsafeRawPointer.
230230@available ( SwiftStdlib 5 . 8 , * )
231231@_silgen_name ( " _swift_setWillThrowHandler " )
232- func setWillThrowHandler(
232+ public func setWillThrowHandler(
233233 _ handler: ( @convention ( c) ( UnsafeRawPointer ) -> Void ) ?
234234)
235235
You can’t perform that action at this time.
0 commit comments