From 21bdff8bc015b557bfae85b968dc4c100be85caf Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Wed, 1 Feb 2023 15:28:06 +0100 Subject: [PATCH] Fix transmute from vector to scalar pair again --- src/value_and_place.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/value_and_place.rs b/src/value_and_place.rs index cc4493d442f7..320eecaee008 100644 --- a/src/value_and_place.rs +++ b/src/value_and_place.rs @@ -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);