Skip to content

Commit 1f06a79

Browse files
Fix calling convention mismatch on GetCurrentTask
1 parent a69bf1d commit 1f06a79

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
@@ -230,6 +230,7 @@ void IRGenFunction::setupAsync(unsigned asyncContextIndex) {
230230
llvm::Value *IRGenFunction::getAsyncTask() {
231231
auto call = Builder.CreateCall(IGM.getGetCurrentTaskFn(), {});
232232
call->setDoesNotThrow();
233+
call->setCallingConv(IGM.SwiftCC);
233234
return call;
234235
}
235236

0 commit comments

Comments
 (0)