Skip to content

Commit 02efbe3

Browse files
committed
Check the callee for async'ness
1 parent 84eb6b6 commit 02efbe3

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
@@ -2668,7 +2668,7 @@ void CallEmission::emitToUnmappedMemory(Address result) {
26682668
auto call = emitCallSite();
26692669

26702670
// Async calls need to store the error result that is passed as a parameter.
2671-
if (IGF.isAsync()) {
2671+
if (CurCallee.getSubstFunctionType()->isAsync()) {
26722672
auto &IGM = IGF.IGM;
26732673
auto &Builder = IGF.Builder;
26742674
auto numAsyncContextParams =

0 commit comments

Comments
 (0)