Skip to content

Commit 47f691c

Browse files
authored
Merge pull request #35610 from slavapestov/dispatch-thunks-using-call-emission
IRGen: Use CallEmission to emit dispatch thunks
2 parents 4e1987f + 9813e94 commit 47f691c

File tree

2 files changed

+275
-76
lines changed

2 files changed

+275
-76
lines changed

lib/IRGen/CallEmission.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ class CallEmission {
103103
bool isOutlined);
104104
void emitToExplosion(Explosion &out, bool isOutlined);
105105

106+
llvm::CallInst *emitCoroutineAsOrdinaryFunction() {
107+
assert(IsCoroutine);
108+
IsCoroutine = false;
109+
110+
return emitCallSite();
111+
}
112+
106113
TemporarySet claimTemporaries() {
107114
// Move the actual temporary set out.
108115
auto result = std::move(Temporaries);

0 commit comments

Comments
 (0)