Skip to content

Commit 8699c22

Browse files
committed
Check the callee for async'ness
1 parent 0edbca0 commit 8699c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenCall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2688,7 +2688,7 @@ void CallEmission::emitToUnmappedMemory(Address result) {
26882688
auto call = emitCallSite();
26892689

26902690
// Async calls need to store the error result that is passed as a parameter.
2691-
if (IGF.isAsync()) {
2691+
if (CurCallee.getSubstFunctionType()->isAsync()) {
26922692
auto &IGM = IGF.IGM;
26932693
auto &Builder = IGF.Builder;
26942694
auto numAsyncContextParams =

0 commit comments

Comments
 (0)