Skip to content

[Concurrency] Traffic in underlying C type rather than JobFlags. #34969

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

Merged
merged 3 commits into from
Dec 4, 2020

Conversation

DougGregor
Copy link
Member

Suppresses a warning about returning a C++ type from a C entrypoint,
fixing rdar://71731181.

We haven't implemented any support for top-level async code yet, so
reject it in effects checking rather than crashing in the SIL verifier.
Fixes rdar://71512818.
Suppresses a warning about returning a C++ type from a C entrypoint,
fixing rdar://71731181.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor merged commit 4957a5e into swiftlang:main Dec 4, 2020
@DougGregor DougGregor deleted the swift_get_jobflags branch December 4, 2020 23:40
@@ -175,8 +175,7 @@ bool swift_task_removeStatusRecord(AsyncTask *task,
TaskStatusRecord *record);

SWIFT_EXPORT_FROM(swift_Concurrency) SWIFT_CC(swift)
JobFlags
swift_task_getJobFlags(AsyncTask* task);
size_t swift_task_getJobFlags(AsyncTask* task);
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah just like that, thanks @DougGregor

JobFlags swift::swift_task_getJobFlags(AsyncTask *task) {
return task->Flags;
size_t swift::swift_task_getJobFlags(AsyncTask *task) {
return task->Flags.getOpaqueValue();
Copy link
Contributor

Choose a reason for hiding this comment

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

I see, thanks 👍

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