File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1709,6 +1709,15 @@ void AsyncTransformation::CreateCheckAndSuspendAfterCall(BasicBlock*
1709
1709
*remainder = m_comp->fgSplitBlockAfterNode (block, jtrue);
1710
1710
JITDUMP (" Remainder is " FMT_BB " \n " , (*remainder)->bbNum );
1711
1711
1712
+ // HACK: Not sure why it can happen, but we may see the end IL for the block
1713
+ // to increasing after splitting off its tail.
1714
+ // This tweak is just to avoid asserts later on.
1715
+ // This is not a real fix.
1716
+ if (block->bbCodeOffsEnd > (*remainder)->bbCodeOffs )
1717
+ {
1718
+ block->bbCodeOffsEnd = (*remainder)->bbCodeOffs ;
1719
+ }
1720
+
1712
1721
FlowEdge* retBBEdge = m_comp->fgAddRefPred (suspendBB, block);
1713
1722
block->SetCond (retBBEdge, block->GetTargetEdge ());
1714
1723
You can’t perform that action at this time.
0 commit comments