diff options
| -rw-r--r-- | src/common.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common.rs b/src/common.rs index a6d6cfac1dd..892ccf27f6d 100644 --- a/src/common.rs +++ b/src/common.rs @@ -90,6 +90,9 @@ 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, _) => { |
