about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-02-01 15:28:06 +0100
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-02-01 15:28:06 +0100
commit21bdff8bc015b557bfae85b968dc4c100be85caf (patch)
tree67917dcbcfd9761a58230e93eb46722ae33b0ab6 /src
parent78bf4af6592c41e9595091a3b24e689190d8b972 (diff)
downloadrust-21bdff8bc015b557bfae85b968dc4c100be85caf.tar.gz
rust-21bdff8bc015b557bfae85b968dc4c100be85caf.zip
Fix transmute from vector to scalar pair again
Diffstat (limited to 'src')
-rw-r--r--src/value_and_place.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value_and_place.rs b/src/value_and_place.rs
index cc4493d442f..320eecaee00 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);