]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/mir/lvalue.rs
Auto merge of #35856 - phimuemue:master, r=brson
[rust.git] / src / librustc_trans / mir / lvalue.rs
index 94db2e3c23cef29a965a16c4bb7feec768e9f3b7..5e180887a36043c3f14feab5639d6f52392ad8fc 100644 (file)
@@ -109,7 +109,7 @@ pub fn trans_lvalue(&mut self,
             mir::Lvalue::ReturnPointer => bug!(), // handled above
             mir::Lvalue::Static(def_id) => {
                 let const_ty = self.monomorphized_lvalue_ty(lvalue);
-                LvalueRef::new_sized(consts::get_static(ccx, def_id).val,
+                LvalueRef::new_sized(consts::get_static(ccx, def_id),
                                      LvalueTy::from_ty(const_ty))
             },
             mir::Lvalue::Projection(box mir::Projection {