Skip to content

Commit 16d18fb

Browse files
committed
Remove unnecessary if statement
1 parent ba7ec50 commit 16d18fb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/common.rs

-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ pub fn clif_intcast<'a, 'tcx: 'a>(
7979
signed: bool,
8080
) -> Value {
8181
let from = fx.bcx.func.dfg.value_type(val);
82-
if from == to {
83-
return val;
84-
}
8582
match (from, to) {
8683
// equal
8784
(_, _) if from == to => val,

0 commit comments

Comments
 (0)