File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -2146,12 +2146,11 @@ static void emitEntryPointArgumentsNativeCC(IRGenSILFunction &IGF,
2146
2146
case SILCoroutineKind::None:
2147
2147
break ;
2148
2148
case SILCoroutineKind::YieldOnce2:
2149
- if (IGF.IGM .IRGen .Opts .EmitYieldOnce2AsYieldOnce ) {
2150
- LLVM_FALLTHROUGH;
2151
- } else {
2149
+ if (!IGF.IGM .IRGen .Opts .EmitYieldOnce2AsYieldOnce ) {
2152
2150
emitYieldOnce2CoroutineEntry (IGF, funcTy, *emission);
2153
2151
break ;
2154
2152
}
2153
+ LLVM_FALLTHROUGH;
2155
2154
case SILCoroutineKind::YieldOnce:
2156
2155
emitYieldOnceCoroutineEntry (IGF, funcTy, *emission);
2157
2156
break ;
@@ -3866,12 +3865,10 @@ void IRGenSILFunction::visitFullApplySite(FullApplySite site) {
3866
3865
break ;
3867
3866
3868
3867
case SILCoroutineKind::YieldOnce2:
3869
- if (IGM.IRGen .Opts .EmitYieldOnce2AsYieldOnce ) {
3870
- LLVM_FALLTHROUGH;
3871
- } else {
3872
- // @yield_once_2 coroutines allocate in the callee
3868
+ // @yield_once_2 coroutines allocate in the callee
3869
+ if (!IGM.IRGen .Opts .EmitYieldOnce2AsYieldOnce )
3873
3870
break ;
3874
- }
3871
+ LLVM_FALLTHROUGH;
3875
3872
3876
3873
case SILCoroutineKind::YieldOnce:
3877
3874
coroutineBuffer = emitAllocYieldOnceCoroutineBuffer (*this );
You can’t perform that action at this time.
0 commit comments