Rename in librustc_codegen_llvm.

This commit is contained in:
Camille GILLOT 2019-11-08 23:19:46 +01:00
parent 25fab7ecf5
commit 1f2c18cdbd

View 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_),