From 3080c73f50a286a7a6199bf88d7bad7570c2e646 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 29 Jun 2019 17:43:25 +0200 Subject: [PATCH] Remove unnecessary if statement --- src/common.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/common.rs b/src/common.rs index 6c907720477..838ea6c8f52 100644 --- a/src/common.rs +++ b/src/common.rs @@ -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,