@@ -5151,13 +5151,11 @@ static llvm::Constant *getCoroAllocWrapperFn(IRGenModule &IGM) {
51515151 /* optionalLinkageOverride=*/ nullptr , llvm::CallingConv::SwiftCoro);
51525152}
51535153
5154- void irgen::emitYieldOnce2CoroutineEntry (
5155- IRGenFunction &IGF, LinkEntity coroFunction, CanSILFunctionType fnType,
5156- NativeCCEntryPointArgumentEmission &emission) {
5157- auto *buffer = emission.getCoroutineBuffer ();
5158- auto cfp = cast<llvm::GlobalVariable>(
5159- IGF.IGM .getAddrOfCoroFunctionPointer (coroFunction));
5160- llvm::Value *allocator = emission.getCoroutineAllocator ();
5154+ void irgen::emitYieldOnce2CoroutineEntry (IRGenFunction &IGF,
5155+ CanSILFunctionType fnType,
5156+ llvm::Value *buffer,
5157+ llvm::Value *allocator,
5158+ llvm::GlobalVariable *cfp) {
51615159 IGF.setCoroutineAllocator (allocator);
51625160 auto isSwiftCoroCCAvailable =
51635161 IGF.IGM .SwiftCoroCC == llvm::CallingConv::SwiftCoro;
@@ -5170,6 +5168,15 @@ void irgen::emitYieldOnce2CoroutineEntry(
51705168 Size (-1 ) /* dynamic-to-IRGen size*/ , IGF.IGM .getCoroStaticFrameAlignment (),
51715169 {cfp, allocator}, allocFn, deallocFn, {});
51725170}
5171+ void irgen::emitYieldOnce2CoroutineEntry (
5172+ IRGenFunction &IGF, LinkEntity coroFunction, CanSILFunctionType fnType,
5173+ NativeCCEntryPointArgumentEmission &emission) {
5174+ auto *buffer = emission.getCoroutineBuffer ();
5175+ auto cfp = cast<llvm::GlobalVariable>(
5176+ IGF.IGM .getAddrOfCoroFunctionPointer (coroFunction));
5177+ llvm::Value *allocator = emission.getCoroutineAllocator ();
5178+ emitYieldOnce2CoroutineEntry (IGF, fnType, buffer, allocator, cfp);
5179+ }
51735180
51745181static Address createOpaqueBufferAlloca (IRGenFunction &IGF,
51755182 Size size, Alignment align) {
0 commit comments