From ff94d195d1ad1ff73a99a2d752ae64d85a04fd4c Mon Sep 17 00:00:00 2001 From: Sergey Andreenko Date: Thu, 19 Apr 2018 15:32:46 -0700 Subject: [PATCH] fix DevDiv_601045 assert --- src/jit/emit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {