interpret/visitor: support visiting with a PlaceTy

This commit is contained in:
Ralf Jung
2022-07-14 20:32:45 -04:00
parent 6c6cccdd9b
commit c4cb043f06
5 changed files with 268 additions and 48 deletions

View File

@@ -436,7 +436,7 @@ fn valtree_into_mplace<'tcx>(
let offset = place_adjusted.layout.fields.offset(i);
place
.offset(
.offset_with_meta(
offset,
MemPlaceMeta::Meta(Scalar::from_machine_usize(
num_elems as u64,