File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -751,8 +751,10 @@ PhaseStatus Compiler::fgRemoveEmptyTry()
751
751
assert (firstHandlerBlock->bbRefs >= 2 );
752
752
firstHandlerBlock->bbRefs -= 1 ;
753
753
754
- // (8) The old try entry no longer needs special protection.
754
+ // (8) The old try/handler entries no longer need special protection.
755
755
firstTryBlock->RemoveFlags (BBF_DONT_REMOVE);
756
+ assert (!bbIsHandlerBeg (firstHandlerBlock));
757
+ firstHandlerBlock->RemoveFlags (BBF_DONT_REMOVE);
756
758
757
759
// Another one bites the dust...
758
760
emptyCount++;
@@ -1476,9 +1478,6 @@ PhaseStatus Compiler::fgCloneFinally()
1476
1478
{
1477
1479
// Mark the block as the start of the cloned finally.
1478
1480
newBlock->SetFlags (BBF_CLONED_FINALLY_BEGIN);
1479
-
1480
- // Cloned finally entry block does not need any special protection.
1481
- newBlock->RemoveFlags (BBF_DONT_REMOVE);
1482
1481
}
1483
1482
1484
1483
if (block == lastBlock)
@@ -1487,6 +1486,7 @@ PhaseStatus Compiler::fgCloneFinally()
1487
1486
newBlock->SetFlags (BBF_CLONED_FINALLY_END);
1488
1487
}
1489
1488
1489
+ // Cloned finally block does not need any special protection.
1490
1490
newBlock->RemoveFlags (BBF_DONT_REMOVE);
1491
1491
1492
1492
// Make sure clone block state hasn't munged the try region.
You can’t perform that action at this time.
0 commit comments