Skip to content

Commit 78c595b

Browse files
Fix calling convention mismatch on GetCurrentTask
1 parent 86429c0 commit 78c595b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/IRGen/GenCall.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ void IRGenFunction::setupAsync(unsigned asyncContextIndex) {
211211
llvm::Value *IRGenFunction::getAsyncTask() {
212212
auto call = Builder.CreateCall(IGM.getGetCurrentTaskFn(), {});
213213
call->setDoesNotThrow();
214+
call->setCallingConv(IGM.SwiftCC);
214215
return call;
215216
}
216217

0 commit comments

Comments
 (0)