Skip to content

Commit 1f2c18c

Browse files
committed
Rename in librustc_codegen_llvm.
1 parent 25fab7e commit 1f2c18c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_codegen_llvm/consts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ pub fn codegen_static_initializer(
8888
let static_ = cx.tcx.const_eval(param_env.and(cid))?;
8989

9090
let alloc = match static_.val {
91-
ConstValue::ByRef {
91+
ty::ConstKind::Value(ConstValue::ByRef {
9292
alloc, offset,
93-
} if offset.bytes() == 0 => {
93+
}) if offset.bytes() == 0 => {
9494
alloc
9595
},
9696
_ => bug!("static const eval returned {:#?}", static_),

0 commit comments

Comments
 (0)