File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,8 @@ PhaseStatus Compiler::SaveAsyncContexts()
169
169
// Await is inside a try, need to insert try-finally around it.
170
170
restoreBB = InsertTryFinallyForContextRestore (curBB, stmt, restoreAfterStmt);
171
171
restoreAfterStmt = nullptr ;
172
+ // we have split the block that could have another await.
173
+ nextBB = restoreBB->Next ();
172
174
#endif
173
175
}
174
176
@@ -1520,8 +1522,9 @@ void AsyncTransformation::FillInGCPointersOnSuspension(GenTreeCall*
1520
1522
if (layout.ContinuationContextGCDataIndex != UINT_MAX)
1521
1523
{
1522
1524
const AsyncCallInfo& callInfo = call->GetAsyncInfo ();
1523
- assert (callInfo.SaveAndRestoreSynchronizationContextField &&
1524
- (callInfo.SynchronizationContextLclNum != BAD_VAR_NUM));
1525
+ assert (callInfo.SaveAndRestoreSynchronizationContextField );
1526
+ assert (callInfo.ExecutionContextHandling == ExecutionContextHandling::SaveAndRestore);
1527
+ assert (callInfo.SynchronizationContextLclNum != BAD_VAR_NUM);
1525
1528
1526
1529
// Insert call
1527
1530
// AsyncHelpers.CaptureContinuationContext(
You can’t perform that action at this time.
0 commit comments