mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -841,6 +841,15 @@ namespace RuntimeConstants {
|
||||
return RuntimeAvailability::AlwaysAvailable;
|
||||
}
|
||||
|
||||
RuntimeAvailability TaskRunInlineAvailability(ASTContext &context) {
|
||||
if (context.LangOpts.isConcurrencyModelTaskToThread()) {
|
||||
return RuntimeAvailability::AlwaysAvailable;
|
||||
}
|
||||
// swift_task_run_inline is only available under task-to-thread execution
|
||||
// model.
|
||||
return RuntimeAvailability::ConditionallyAvailable;
|
||||
}
|
||||
|
||||
} // namespace RuntimeConstants
|
||||
|
||||
// We don't use enough attributes to justify generalizing the
|
||||
|
||||
Reference in New Issue
Block a user