diff --git a/src/jit/emit.cpp b/src/jit/emit.cpp index 32524ea5ed06..93791bdc78b4 100644 --- a/src/jit/emit.cpp +++ b/src/jit/emit.cpp @@ -7254,7 +7254,9 @@ const char* emitter::emitOffsetToLabel(unsigned offs) for (ig = emitIGlist; ig != nullptr; ig = ig->igNext) { - assert(nextof == ig->igOffs); + // There is an eventual unused space after the last actual hot block + // before the first allocated cold block. + assert((nextof == ig->igOffs) || (ig == emitFirstColdIG)); if (ig->igOffs == offs) {