rebase
This commit is contained in:
parent
e14b34c386
commit
15c1c06522
10 changed files with 36 additions and 82 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue