Skip to content

Commit 9c6c9a5

Browse files
Merge pull request swiftlang#36021 from varungandhi-apple/vg-fix-completeTask-convention
[Runtime] Fix calling convention of async function.
2 parents b508527 + 7eeabd9 commit 9c6c9a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/Task.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const void *const swift::_swift_concurrency_debug_asyncTaskMetadata =
179179

180180
/// The function that we put in the context of a simple task
181181
/// to handle the final return.
182-
SWIFT_CC(swift)
182+
SWIFT_CC(swiftasync)
183183
static void completeTask(AsyncTask *task, ExecutorRef executor,
184184
SWIFT_ASYNC_CONTEXT AsyncContext *context) {
185185
// Tear down the task-local allocator immediately;

0 commit comments

Comments
 (0)