From 492c4c3bd513023f2c5c0d583f781f6bc1acc02e Mon Sep 17 00:00:00 2001 From: Kunal Pathak Date: Wed, 24 Nov 2021 11:39:07 -0800 Subject: [PATCH] needLabel assert --- src/coreclr/jit/codegenlinear.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/jit/codegenlinear.cpp b/src/coreclr/jit/codegenlinear.cpp index ef49804dc850d..38ac9a92d86d4 100644 --- a/src/coreclr/jit/codegenlinear.cpp +++ b/src/coreclr/jit/codegenlinear.cpp @@ -344,8 +344,8 @@ void CodeGen::genCodeForBBlist() #if FEATURE_LOOP_ALIGN if (GetEmitter()->emitEndsWithAlignInstr()) { - // we had better be planning on starting a new IG - assert(needLabel); + // Force new label if current IG ends with an align instruction. + needLabel = true; } #endif