Fix transmute from vector to scalar pair again

This commit is contained in:
bjorn3 2023-02-01 15:28:06 +01:00
parent 78bf4af659
commit 21bdff8bc0

View File

@ -588,7 +588,7 @@ impl<'tcx> CPlace<'tcx> {
return;
}
CPlaceInner::VarPair(_local, var1, var2) => {
let (data1, data2) = if self.layout().ty == dst_layout.ty {
let (data1, data2) = if from.layout().ty == dst_layout.ty {
CValue(from.0, dst_layout).load_scalar_pair(fx)
} else {
let (ptr, meta) = from.force_stack(fx);