Add simple accessor/generator coroutine support to SILFunctionType.

This commit is contained in:
John McCall
2017-11-06 23:29:32 -05:00
parent a0483e90e5
commit 5c33d2106a
33 changed files with 753 additions and 324 deletions

View File

@@ -629,7 +629,8 @@ SILFunction *PromotedParamCloner::initCloned(SILFunction *Orig,
// the parameters promoted.
auto ClonedTy = SILFunctionType::get(
OrigFTI->getGenericSignature(), OrigFTI->getExtInfo(),
OrigFTI->getCalleeConvention(), ClonedInterfaceArgTys,
OrigFTI->getCoroutineKind(), OrigFTI->getCalleeConvention(),
ClonedInterfaceArgTys, OrigFTI->getYields(),
OrigFTI->getResults(), OrigFTI->getOptionalErrorResult(),
M.getASTContext(), OrigFTI->getWitnessMethodConformanceOrNone());