Remove unnecessary if statement

This commit is contained in:
bjorn3 2019-06-29 17:43:25 +02:00
parent 8b3628028e
commit 3080c73f50

View File

@ -79,9 +79,6 @@ pub fn clif_intcast<'a, 'tcx: 'a>(
signed: bool,
) -> Value {
let from = fx.bcx.func.dfg.value_type(val);
if from == to {
return val;
}
match (from, to) {
// equal
(_, _) if from == to => val,