First cut of making coroutine AST type

This commit is contained in:
Anton Korobeynikov
2024-08-13 22:27:02 -07:00
parent 797f500286
commit 76c9a23f27
32 changed files with 223 additions and 71 deletions

View File

@@ -1125,7 +1125,7 @@ void SILGenFunction::emitFunction(FuncDecl *fd) {
auto captureInfo = SGM.M.Types.getLoweredLocalCaptures(SILDeclRef(fd));
emitProlog(fd, captureInfo, fd->getParameters(), fd->getImplicitSelfDecl(),
fd->getResultInterfaceType(), fd->getEffectiveThrownErrorType(),
fd->getResultInterfaceTypeWithoutYields(), fd->getEffectiveThrownErrorType(),
fd->getThrowsLoc());
if (fd->isDistributedActorFactory()) {
@@ -1133,7 +1133,7 @@ void SILGenFunction::emitFunction(FuncDecl *fd) {
emitDistributedActorFactory(fd);
} else {
prepareEpilog(fd,
fd->getResultInterfaceType(),
fd->getResultInterfaceTypeWithoutYields(),
fd->getEffectiveThrownErrorType(),
CleanupLocation(fd));