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 {
651
651
effectiveAccess = std::max (effectiveAccess, AccessLevel::Internal);
652
652
}
653
653
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
-
662
654
switch (effectiveAccess) {
663
655
case AccessLevel::Private:
664
656
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) {
229
229
// not available, so pass it through an UnsafeRawPointer.
230
230
@available ( SwiftStdlib 5 . 8 , * )
231
231
@_silgen_name ( " _swift_setWillThrowHandler " )
232
- func setWillThrowHandler(
232
+ public func setWillThrowHandler(
233
233
_ handler: ( @convention ( c) ( UnsafeRawPointer ) -> Void ) ?
234
234
)
235
235
You can’t perform that action at this time.
0 commit comments