Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit a5b9e86

Browse files
committed
[NFC] Used convenience to retrieve context arg.
1 parent b65d71b commit a5b9e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/IRGenSIL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3215,7 +3215,7 @@ static void emitReturnInst(IRGenSILFunction &IGF,
32153215
assert(!IGF.IndirectReturn.isValid() &&
32163216
"Formally direct results should stay direct results for async "
32173217
"functions");
3218-
llvm::Value *context = IGF.CurFn->getArg(2);
3218+
llvm::Value *context = IGF.getAsyncContext();
32193219
auto layout = getAsyncContextLayout(IGF);
32203220

32213221
Address dataAddr = layout.emitCastTo(IGF, context);

0 commit comments

Comments
 (0)