Skip to content

Commit 7ffc96e

Browse files
authored
needLabel assert (dotnet#62025)
1 parent 985f477 commit 7ffc96e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coreclr/jit/codegenlinear.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ void CodeGen::genCodeForBBlist()
344344
#if FEATURE_LOOP_ALIGN
345345
if (GetEmitter()->emitEndsWithAlignInstr())
346346
{
347-
// we had better be planning on starting a new IG
348-
assert(needLabel);
347+
// Force new label if current IG ends with an align instruction.
348+
needLabel = true;
349349
}
350350
#endif
351351

0 commit comments

Comments
 (0)