diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2019-11-08 23:19:46 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2019-11-12 20:50:46 +0100 |
| commit | 1f2c18cdbd755afc722fa2a38c97a6dc6d134453 (patch) | |
| tree | 98a3c57459d2123ea63700520ec4c341967a4dbe | |
| parent | 25fab7ecf5192406de74bbfa9978e3ef53681386 (diff) | |
Rename in librustc_codegen_llvm.
| -rw-r--r-- | src/librustc_codegen_llvm/consts.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/consts.rs b/src/librustc_codegen_llvm/consts.rs index fd7054a5a0a..bcf0154e3f8 100644 --- a/src/librustc_codegen_llvm/consts.rs +++ b/src/librustc_codegen_llvm/consts.rs @@ -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_), |
