diff --git a/src/coreclr/jit/indirectcalltransformer.cpp b/src/coreclr/jit/indirectcalltransformer.cpp index b5f600365ecf73..718e7d56f6deed 100644 --- a/src/coreclr/jit/indirectcalltransformer.cpp +++ b/src/coreclr/jit/indirectcalltransformer.cpp @@ -210,6 +210,7 @@ class IndirectCallTransformer { remainderBlock = compiler->fgSplitBlockAfterStatement(currBlock, stmt); remainderBlock->SetFlags(BBF_INTERNAL); + remainderBlock->RemoveFlags(BBF_DONT_REMOVE); // We will be adding more blocks after currBlock, so remove edge to remainderBlock. // @@ -237,6 +238,7 @@ class IndirectCallTransformer { block->CopyFlags(flagsSource, BBF_SPLIT_GAINED); } + block->RemoveFlags(BBF_DONT_REMOVE); return block; }