Skip to content

Commit

Permalink
Remove unnecessary bailout in clif_pair_type_from_ty
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Aug 20, 2021
1 parent edadc29 commit 3b22c3a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, _) => {
Expand Down

0 comments on commit 3b22c3a

Please sign in to comment.