Skip to content

Commit 4cba037

Browse files
committed
Fix missing comparisons in DeadCodeEliminator
1 parent b7d63a2 commit 4cba037

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Cpp2IL.Core/Analysis/DeadCodeEliminator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ OpCode.Move or OpCode.Phi
106106
or OpCode.Add or OpCode.Subtract or OpCode.Multiply or OpCode.Divide
107107
or OpCode.ShiftLeft or OpCode.ShiftRight
108108
or OpCode.And or OpCode.Or or OpCode.Xor
109-
or OpCode.Not or OpCode.Negate
110-
or OpCode.CheckEqual or OpCode.CheckGreater or OpCode.CheckLess => true,
109+
or OpCode.Not or OpCode.Negate=> true,
110+
>= OpCode.CheckEqual and <= OpCode.CheckLessOrEqual => true,
111111
_ => false
112112
};
113113
}

0 commit comments

Comments
 (0)