diff options
| author | b-naber <bn263@gmx.de> | 2022-06-14 17:34:37 +0200 |
|---|---|---|
| committer | b-naber <bn263@gmx.de> | 2022-06-14 17:57:51 +0200 |
| commit | 15c1c0652298e9dd3dee45813a2718623f6e3702 (patch) | |
| tree | 6581df2ee1f2078854db7ed00e98012b790a525a /compiler/rustc_const_eval/src/interpret | |
| parent | e14b34c386ad2809e937e0e6e0379c5cc5474954 (diff) | |
| download | rust-15c1c0652298e9dd3dee45813a2718623f6e3702.tar.gz rust-15c1c0652298e9dd3dee45813a2718623f6e3702.zip | |
rebase
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/operand.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/operand.rs b/compiler/rustc_const_eval/src/interpret/operand.rs index e9a9c0e1713..6b05a49575f 100644 --- a/compiler/rustc_const_eval/src/interpret/operand.rs +++ b/compiler/rustc_const_eval/src/interpret/operand.rs @@ -638,7 +638,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { span_bug!(self.cur_span(), "const_to_op: Unexpected ConstKind {:?}", c) } ty::ConstKind::Value(valtree) => { - let ty = val.ty(); + let ty = c.ty(); let const_val = self.tcx.valtree_to_const_val((ty, valtree)); self.const_val_to_op(const_val, ty, layout) } |
