]> git.lizzy.rs Git - rust.git/commitdiff
Remove unnecessary if statement
authorbjorn3 <bjorn3@users.noreply.github.com>
Sat, 29 Jun 2019 15:43:25 +0000 (17:43 +0200)
committerbjorn3 <bjorn3@users.noreply.github.com>
Fri, 26 Jul 2019 09:28:28 +0000 (11:28 +0200)
src/common.rs

index 6c907720477cca7c3de107aba8a9f256673702bb..838ea6c8f5251fe0bfbfd1d06f9efd0ee2cbe28b 100644 (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,