Skip to content

Commit 919e683

Browse files
authored
fix the condition in assert (#38965)
1 parent 8ca982b commit 919e683

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coreclr/src/jit/optimizer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,8 +2317,8 @@ class LoopSearch
23172317
}
23182318

23192319
// Make sure we don't leave around a goto-next unless it's marked KEEP_BBJ_ALWAYS.
2320-
assert((block->bbJumpKind != BBJ_COND) || (block->bbJumpKind != BBJ_ALWAYS) || (block->bbJumpDest != newNext) ||
2321-
((block->bbFlags & BBF_KEEP_BBJ_ALWAYS) != 0));
2320+
assert(((block->bbJumpKind != BBJ_COND) && (block->bbJumpKind != BBJ_ALWAYS)) ||
2321+
(block->bbJumpDest != newNext) || ((block->bbFlags & BBF_KEEP_BBJ_ALWAYS) != 0));
23222322
return newBlock;
23232323
}
23242324

0 commit comments

Comments
 (0)