]> git.lizzy.rs Git - rust.git/commitdiff
Remove unnecessary bailout in clif_pair_type_from_ty
authorbjorn3 <bjorn3@users.noreply.github.com>
Fri, 20 Aug 2021 17:30:16 +0000 (19:30 +0200)
committerbjorn3 <bjorn3@users.noreply.github.com>
Fri, 20 Aug 2021 17:30:16 +0000 (19:30 +0200)
src/common.rs

index 892ccf27f6df893f713a62e9cf387f951848da98..a6d6cfac1dd8b859d187f641cc127f7bb778afdf 100644 (file)
@@ -90,9 +90,6 @@ fn clif_pair_type_from_ty<'tcx>(
             let mut types = substs.types();
             let a = clif_type_from_ty(tcx, types.next().unwrap())?;
             let b = clif_type_from_ty(tcx, types.next().unwrap())?;
-            if a.is_vector() || b.is_vector() {
-                return None;
-            }
             (a, b)
         }
         ty::RawPtr(TypeAndMut { ty: pointee_ty, mutbl: _ }) | ty::Ref(_, pointee_ty, _) => {