]> git.lizzy.rs Git - rust.git/commitdiff
Rename in librustc_codegen_llvm.
authorCamille GILLOT <gillot.camille@gmail.com>
Fri, 8 Nov 2019 22:19:46 +0000 (23:19 +0100)
committerCamille GILLOT <gillot.camille@gmail.com>
Tue, 12 Nov 2019 19:50:46 +0000 (20:50 +0100)
src/librustc_codegen_llvm/consts.rs

index fd7054a5a0ada777f9547420412aaf6e43c84154..bcf0154e3f8796f318533b71604cc148cbb938c4 100644 (file)
@@ -88,9 +88,9 @@ pub fn codegen_static_initializer(
     let static_ = cx.tcx.const_eval(param_env.and(cid))?;
 
     let alloc = match static_.val {
-        ConstValue::ByRef {
+        ty::ConstKind::Value(ConstValue::ByRef {
             alloc, offset,
-        } if offset.bytes() == 0 => {
+        }) if offset.bytes() == 0 => {
             alloc
         },
         _ => bug!("static const eval returned {:#?}", static_),