Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions lib/IRGen/IRGenSIL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2146,12 +2146,11 @@ static void emitEntryPointArgumentsNativeCC(IRGenSILFunction &IGF,
case SILCoroutineKind::None:
break;
case SILCoroutineKind::YieldOnce2:
if (IGF.IGM.IRGen.Opts.EmitYieldOnce2AsYieldOnce) {
LLVM_FALLTHROUGH;
} else {
if (!IGF.IGM.IRGen.Opts.EmitYieldOnce2AsYieldOnce) {
emitYieldOnce2CoroutineEntry(IGF, funcTy, *emission);
break;
}
LLVM_FALLTHROUGH;
case SILCoroutineKind::YieldOnce:
emitYieldOnceCoroutineEntry(IGF, funcTy, *emission);
break;
Expand Down Expand Up @@ -3866,12 +3865,10 @@ void IRGenSILFunction::visitFullApplySite(FullApplySite site) {
break;

case SILCoroutineKind::YieldOnce2:
if (IGM.IRGen.Opts.EmitYieldOnce2AsYieldOnce) {
LLVM_FALLTHROUGH;
} else {
// @yield_once_2 coroutines allocate in the callee
// @yield_once_2 coroutines allocate in the callee
if (!IGM.IRGen.Opts.EmitYieldOnce2AsYieldOnce)
break;
}
LLVM_FALLTHROUGH;

case SILCoroutineKind::YieldOnce:
coroutineBuffer = emitAllocYieldOnceCoroutineBuffer(*this);
Expand Down