Skip to content

[IRGen] swift_getFunctionTypeMetadataGlobalActor has concurrency availability #38140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

DougGregor
Copy link
Member

@DougGregor DougGregor commented Jun 28, 2021

Fix two problems in IRGen where we were not correctly weak-importing them:

  • swift_getFunctionTypeMetadataGlobalActor was not marked as having concurrency availability
  • Async function pointer references weren't propagating weak-imports properly

Fixes rdar://79674106.

@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

We were not making references to async function pointers "weak" when
the function itself was weak, because we were always calculating
linkage as-if we were defining the async function pointer.

Fixes the rest of rdar://79674106.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

Copy link
Contributor

@aschwaighofer aschwaighofer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ForDefinition_t, forDefinition, ForDefinition.

LGTM.

@DougGregor
Copy link
Member Author

I don't understand why this succeeded now on Linux:

16:42:22 Unexpectedly Passed Tests (1):
16:42:22   Swift(linux-x86_64) :: Concurrency/Runtime/class_resilience.swift

@DougGregor
Copy link
Member Author

@swift-ci please smoke test Linux

@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please smoke test macOS

@DougGregor DougGregor merged commit e5eb892 into swiftlang:main Jun 29, 2021
@DougGregor DougGregor deleted the concurrency-availability-function-type-metadata branch June 29, 2021 16:01
3405691582 added a commit to 3405691582/swift that referenced this pull request Jul 17, 2021
Also see swiftlang#38140; we can remove this XFAIL just like Linux.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants