Skip to content

Commit

Permalink
Fix an assert when we import a switch (in jitdump mode)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed Jul 12, 2021
1 parent a382443 commit 4d0bf98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr/jit/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1431,14 +1431,15 @@ BasicBlock* Compiler::bbNewBasicBlock(BBjumpKinds jumpKind)
/* Give the block a number, set the ancestor count and weight */

++fgBBcount;
++fgBBNumMax;

if (compIsForInlining())
{
block->bbNum = ++impInlineInfo->InlinerCompiler->fgBBNumMax;
}
else
{
block->bbNum = ++fgBBNumMax;
block->bbNum = fgBBNumMax;
}

if (compRationalIRForm)
Expand Down

0 comments on commit 4d0bf98

Please sign in to comment.