Skip to content

Commit d29e048

Browse files
committed
Revert "Remove unnecessary bailout in clif_pair_type_from_ty"
This reverts commit 3b22c3a. Seems to be necessary after all. At least when compiling regex.
1 parent 3b22c3a commit d29e048

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/common.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ fn clif_pair_type_from_ty<'tcx>(
9090
let mut types = substs.types();
9191
let a = clif_type_from_ty(tcx, types.next().unwrap())?;
9292
let b = clif_type_from_ty(tcx, types.next().unwrap())?;
93+
if a.is_vector() || b.is_vector() {
94+
return None;
95+
}
9396
(a, b)
9497
}
9598
ty::RawPtr(TypeAndMut { ty: pointee_ty, mutbl: _ }) | ty::Ref(_, pointee_ty, _) => {

0 commit comments

Comments
 (0)