Remove redundant conditional.

上级 a807e98b
......@@ -4679,16 +4679,14 @@ void checkLoopCondition()
}
else if (operation.StepValue.GetConstantValue() is { IsBad: false } value)
{
if (value.Discriminator != ConstantValueTypeDiscriminator.Bad)
Debug.Assert(value.Discriminator != ConstantValueTypeDiscriminator.Bad);
if (value.IsNegativeNumeric)
{
if (value.IsNegativeNumeric)
{
comparisonKind = BinaryOperatorKind.GreaterThanOrEqual;
}
else if (value.IsNumeric)
{
comparisonKind = BinaryOperatorKind.LessThanOrEqual;
}
comparisonKind = BinaryOperatorKind.GreaterThanOrEqual;
}
else if (value.IsNumeric)
{
comparisonKind = BinaryOperatorKind.LessThanOrEqual;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册