Skip to content

Commit 9d4fa00

Browse files
committed
Give an AllocId to ConstValue::Slice.
1 parent 2dd691f commit 9d4fa00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/alloc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ pub(crate) fn try_new_allocation<'tcx>(
5454
alloc::try_new_scalar(layout, scalar, cx).map(|alloc| alloc.stable(tables, cx))
5555
}
5656
ConstValue::ZeroSized => Ok(new_empty_allocation(layout.align.abi)),
57-
ConstValue::Slice { data, meta } => {
58-
alloc::try_new_slice(layout, data, meta, cx).map(|alloc| alloc.stable(tables, cx))
57+
ConstValue::Slice { alloc_id, meta, phantom: _ } => {
58+
alloc::try_new_slice(layout, alloc_id, meta, cx).map(|alloc| alloc.stable(tables, cx))
5959
}
6060
ConstValue::Indirect { alloc_id, offset } => {
6161
let alloc = alloc::try_new_indirect(alloc_id, cx);

0 commit comments

Comments
 (0)