Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 10b2161

Browse files
author
Sergey Andreenko
authored
fix DevDiv_601045 assert (#17685)
1 parent b3c61a9 commit 10b2161

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/jit/emit.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7254,7 +7254,9 @@ const char* emitter::emitOffsetToLabel(unsigned offs)
72547254

72557255
for (ig = emitIGlist; ig != nullptr; ig = ig->igNext)
72567256
{
7257-
assert(nextof == ig->igOffs);
7257+
// There is an eventual unused space after the last actual hot block
7258+
// before the first allocated cold block.
7259+
assert((nextof == ig->igOffs) || (ig == emitFirstColdIG));
72587260

72597261
if (ig->igOffs == offs)
72607262
{

0 commit comments

Comments
 (0)