Skip to content

Commit 21bdff8

Browse files
committed
Fix transmute from vector to scalar pair again
1 parent 78bf4af commit 21bdff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/value_and_place.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ impl<'tcx> CPlace<'tcx> {
588588
return;
589589
}
590590
CPlaceInner::VarPair(_local, var1, var2) => {
591-
let (data1, data2) = if self.layout().ty == dst_layout.ty {
591+
let (data1, data2) = if from.layout().ty == dst_layout.ty {
592592
CValue(from.0, dst_layout).load_scalar_pair(fx)
593593
} else {
594594
let (ptr, meta) = from.force_stack(fx);

0 commit comments

Comments
 (0)